From: hickert Date: Tue, 3 Feb 2009 16:48:16 +0000 (+0000) Subject: Updated workstation - installation log view plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c4b785ca317d70f4431b499a26d2159b91abfdd0;p=gosa.git Updated workstation - installation log view plugin -Fixed PHP error "Invalid argument supplied for foreach()" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13381 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 2f619e84e..3cf6e7da5 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -1758,6 +1758,9 @@ class gosaSupportDaemon /* Get list of available log files */ + if(!is_array($entry)){ + $entry = array($entry); + } foreach($entry as $log_date){ $xml_msg2 = "
gosa_show_log_files_by_date_and_mac
@@ -1766,7 +1769,7 @@ class gosaSupportDaemon ".$log_date." ".$mac."
"; - + $ret[$mac][$log_date] = array(); $res = $this->_send($xml_msg2,TRUE); $ret[$mac][$log_date]['DATE_STR'] = $log_date;