From 1348cd008d41e916c3790fd9471c6d8a72cb0e22 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 16 Apr 2015 14:12:01 +0200 Subject: [PATCH] first check for $_POST vars $_POST['notification_users'] and $_POST['notification_groups'] --- op/op.AddDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op/op.AddDocument.php b/op/op.AddDocument.php index dd0207439..d30e87e6d 100644 --- a/op/op.AddDocument.php +++ b/op/op.AddDocument.php @@ -305,7 +305,7 @@ for ($file_num=0;$file_numaddNotify($user->getID(), true); } /* Check if additional notification shall be added */ - if($_POST['notification_users']) { + if(!empty($_POST['notification_users'])) { foreach($_POST['notification_users'] as $notuserid) { $notuser = $dms->getUser($notuserid); if($notuser) { @@ -314,7 +314,7 @@ for ($file_num=0;$file_numgetGroup($notgroupid); if($notgroup) {