From d28d35ff763428194c4fe22bb72988473bf44864 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Aug 2007 08:13:29 +0000 Subject: [PATCH] Added additional check to delete block git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7100 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/gotomasses/class_gotomasses.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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."
")); -- 2.30.2