Code

Fixed foreach error
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Feb 2006 14:32:01 +0000 (14:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Feb 2006 14:32:01 +0000 (14:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2734 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiScriptEntry.inc

index 28d8fb07c8e48d7f213aa8baf5791d5dc4cb9fed..bc7e26f192f38b12524c58e075940f0546a12647 100644 (file)
@@ -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){