From 2a1cdeeb77d79d265b083a68b58c7ee11bae87fd Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 08:18:49 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_FAI.inc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2