From f3c9620c657ffa29733e0aa724199630c2e099aa Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Apr 2006 06:11:08 +0000 Subject: [PATCH] Simple check for copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2944 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']; -- 2.30.2