From: hickert Date: Wed, 22 Aug 2007 08:13:29 +0000 (+0000) Subject: Added additional check to delete block X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d28d35ff763428194c4fe22bb72988473bf44864;p=gosa.git Added additional check to delete block git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7100 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index 8b32876ef..677b92cf5 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -67,9 +67,13 @@ class gotomasses extends plugin }else{ $this->ids_to_remove = $this->list_get_selected_items(); $tmp = ""; - foreach($this->ids_to_remove as $id){ - $task = $this->tasks[$id]; - $tmp.= "\n".$this->target_to_string($task); + foreach($this->ids_to_remove as $key => $id){ + if(isset($this->tasks[$id])){ + $task = $this->tasks[$id]; + $tmp.= "\n".$this->target_to_string($task); + }else{ + unset($this->ids_to_remove[$key]); + } } $smarty->assign("multiple", TRUE); $smarty->assign("info",sprintf(_("Your are about to delete the following tasks: %s"),"
".$tmp."
"));