Code

Added warning if broken save attributes are given for FAI
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 08:18:49 +0000 (08:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 08:18:49 +0000 (08:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10347 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_FAI.inc

index 73848e7faf953ebd55959eb828532ea4cb0bdcc8..1fef153b638bc87723acf6a0508d7f0c0725b73e 100644 (file)
@@ -292,6 +292,10 @@ class FAI
 
     /* check which objects must be saved */
     $FAI_objects_to_save = session::get('FAI_objects_to_save');
+    if(!is_array($FAI_objects_to_save)) {
+      trigger_error("Can't save FAI objects, no array given.");
+      return;
+    }
     foreach($FAI_objects_to_save as $Current_DN => $object){
       if($object['diff']){
         $sub_name = $Current_DN;