From: hickert Date: Fri, 11 Apr 2008 08:18:49 +0000 (+0000) Subject: Added warning if broken save attributes are given for FAI X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a1cdeeb77d79d265b083a68b58c7ee11bae87fd;p=gosa.git Added warning if broken save attributes are given for FAI git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10347 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 73848e7fa..1fef153b6 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -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;