Code

Simple check for copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 06:11:08 +0000 (06:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 06:11:08 +0000 (06:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2944 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index c4bd41467a5e4b21954d0178bfd442f60736dbda..d2b869a22cf9b167fa4c36a84bd76dc44882729b 100644 (file)
@@ -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'];