From e8141a7be8ab08ee9210043cfaa2ea2720ef3c32 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Feb 2006 14:32:01 +0000 Subject: [PATCH] Fixed foreach error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScriptEntry.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ -- 2.30.2