From: hickert Date: Fri, 11 Apr 2008 15:04:40 +0000 (+0000) Subject: Added warning to package request method of Daemon class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=140a2c5fec662a71ff9c370cb50fc566259dcb52;p=gosa.git Added warning to package request method of Daemon class. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10370 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 01c12fcde..95f81c9de 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -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){