From 190cb617321185d2a2134cb724fab3e3078e3b6a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Jan 2008 14:58:59 +0000 Subject: [PATCH] Updated listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8591 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/addons/gotomasses/class_gotomasses.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc index 5bed0057a..67898bb9b 100644 --- a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc +++ b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc @@ -259,14 +259,14 @@ class gotomasses extends plugin $start = $this->range * $this->start; $stop = $start + $this->range; $entries = $this->o_queue->get_queued_entries($start,$stop); - if(!is_array($entries)){ + if(!is_array($entries) || !isset($entries['XML']) || !is_array($entries['XML'])){ msg_dialog::display(_("Error"), sprintf(_("Cannot load queue entries: %s"), "

".$this->o_queue->get_error()), ERROR_DIALOG); return(array()); } $tasks = array(); $ret = array(); - foreach($entries as $entry){ + foreach($entries['XML'] as $entry){ $task = $entry['ID']; $ret[]= $entry; } -- 2.30.2