From: hickert Date: Mon, 3 Apr 2006 06:11:08 +0000 (+0000) Subject: Simple check for copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3c9620c657ffa29733e0aa724199630c2e099aa;p=gosa.git Simple check for copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2944 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index c4bd41467..d2b869a22 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -1158,7 +1158,8 @@ $ldap->modify ($this->attrs); } function getCopyDialog() - { + { + if(!$this->is_account) return(""); $smarty = get_smarty(); if (!count($this->phoneNumbers)){ $smarty->assign ("phoneNumbers", array("")); @@ -1175,6 +1176,7 @@ $ldap->modify ($this->attrs); function saveCopyDialog() { + if(!$this->is_account) return; $this->execute(); if(isset($_POST['goFonVoicemailPIN'])) { $this->goFonVoicemailPIN = $_POST['goFonVoicemailPIN'];