mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
first check for $_POST vars
$_POST['notification_users'] and $_POST['notification_groups']
This commit is contained in:
parent
f02917d5aa
commit
1348cd008d
|
@ -305,7 +305,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) {
|
||||
|
@ -314,7 +314,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