From 09df2a9cc4efaadf736e7f92ef11df8578cddf1b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Jan 2007 08:25:07 +0000 Subject: [PATCH] Skip add if user/group is not set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5590 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/notifications/class_msgplug.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/addons/notifications/class_msgplug.inc b/plugins/addons/notifications/class_msgplug.inc index 3aea28353..0b86b1f7b 100644 --- a/plugins/addons/notifications/class_msgplug.inc +++ b/plugins/addons/notifications/class_msgplug.inc @@ -121,10 +121,14 @@ class msgplug extends plugin if (isset($_POST['add']) && isset($_POST['source']) && $this->acl_is_writeable("notify")){ foreach ($_POST['source'] as $key){ if ($this->target == 'user'){ - $this->recipients[$key]= $this->users[$key]; + if(isset($this->users[$key])){ + $this->recipients[$key]= $this->users[$key]; + } } if ($this->target == 'group'){ - $this->recipients[$key]= $this->groups[$key]; + if(isset($this->groups[$key])){ + $this->recipients[$key]= $this->groups[$key]; + } } } ksort($this->recipients); -- 2.30.2