From 61d621aa0fa36c7226d7753042d9893ad7602358 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 27 Sep 2005 10:05:21 +0000 Subject: [PATCH] Removed error when this variable is not set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1431 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 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']))){ -- 2.30.2