From: cajus Date: Tue, 27 Sep 2005 10:05:21 +0000 (+0000) Subject: Removed error when this variable is not set X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=61d621aa0fa36c7226d7753042d9893ad7602358;p=gosa.git Removed error when this variable is not set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1431 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 942b28c4d..b2e848df8 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -133,7 +133,9 @@ class phoneAccount extends plugin } /* Parse macro data, unset count for parameterarrays */ - unset($attrs['goFonMacroParameter']['count']); + if (isset($attrs['goFonMacroParameter']['count'])){ + unset($attrs['goFonMacroParameter']['count']); + } /* Go through available parameters and parse all attributes, like parametername, type, default ...*/ if((isset($attrs['goFonMacroParameter']))&&(is_array($attrs['goFonMacroParameter']))){