Code

Fixed php warning for FAI copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Apr 2008 08:40:53 +0000 (08:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 18 Apr 2008 08:40:53 +0000 (08:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10553 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index b0677537f6d7196d23ecb99906f667829413fe2e..bf28aa0a927365c55911dfc398254b88ffb0fbde 100644 (file)
@@ -299,6 +299,9 @@ class FAI
     $reload_fai_classes = FALSE;
 
     /* check which objects must be saved */
+    if(!session::is_set('FAI_objects_to_save')){
+      return;
+    }
     $FAI_objects_to_save = session::get('FAI_objects_to_save');
     if(!is_array($FAI_objects_to_save)) {
       print_a(array(session::get('FAI_objects_to_save')));