Code

Updated listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jan 2008 14:58:59 +0000 (14:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jan 2008 14:58:59 +0000 (14:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8591 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/gotomasses/class_gotomasses.inc

index 5bed0057ae68d005ca0634b06b3552a7df51d6bc..67898bb9b3454ed1d74a5961839c31a051d05b1c 100644 (file)
@@ -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"), "<br><br>".$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;
     }