From 140a2c5fec662a71ff9c370cb50fc566259dcb52 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 15:04:40 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_gosaSupportDaemon.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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){ -- 2.30.2