Code

Added warning to package request method of Daemon class.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 15:04:40 +0000 (15:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 15:04:40 +0000 (15:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10370 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 01c12fcdea1ee751c1b34b8e75efd0fd0fd122f8..95f81c9de533119d5fdfd1ce934c65c9bcb16556 100644 (file)
@@ -145,6 +145,12 @@ class gosaSupportDaemon
       return($ret);
     }
 
+    /* Check Parameter */
+    if(!is_array($package) || !count($package)){
+      trigger_error("Third parameter must be an array. With at least one attribute name.");
+      return($ret);
+    }
+
     /* Create list of attributes to fetch */
     $attr = ""; 
     foreach($attrs as $at){