From: cajus Date: Fri, 27 May 2005 17:10:53 +0000 (+0000) Subject: Fixed problem with empty lists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=075b413929a9ba9b563d75384d199718d3b4fb1a;p=gosa.git Fixed problem with empty lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@493 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 0a99471a3..4c6e0e3e9 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -171,7 +171,11 @@ class phoneAccount extends plugin /* Fill arrays */ $smarty->assign ("goFonHardware", $this->goFonHardware); - $smarty->assign ("phoneNumbers", $this->phoneNumbers); + if (!count($this->phoneNumbers)){ + $smarty->assign ("phoneNumbers", array("")); + } else { + $smarty->assign ("phoneNumbers", $this->phoneNumbers); + } $hl= "