mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
first check for $_POST vars
$_POST['notification_users'] and $_POST['notification_groups']
This commit is contained in:
parent
ba5185eec8
commit
a252f82f08
|
@ -315,7 +315,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
$res = $document->addNotify($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) {
|
||||
|
@ -324,7 +324,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
}
|
||||
}
|
||||
}
|
||||
if($_POST['notification_groups']) {
|
||||
if(!empty($_POST['notification_groups'])) {
|
||||
foreach($_POST['notification_groups'] as $notgroupid) {
|
||||
$notgroup = $dms->getGroup($notgroupid);
|
||||
if($notgroup) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user