From: hickert Date: Thu, 23 Feb 2006 14:32:01 +0000 (+0000) Subject: Fixed foreach error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8141a7be8ab08ee9210043cfaa2ea2720ef3c32;p=gosa.git Fixed foreach error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc index 28d8fb07c..bc7e26f19 100644 --- a/plugins/admin/fai/class_faiScriptEntry.inc +++ b/plugins/admin/fai/class_faiScriptEntry.inc @@ -33,7 +33,7 @@ class faiScriptEntry extends plugin $this->$oname=$value; } }else{ - if(count($object)){ + if(is_array($object)&&count($object)){ $this->orig_cn= $object['cn']; $this->dn=$object['dn']; foreach($object as $name=>$value){