mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
check if $recipients['i'] and ['g'] are set instead of $recipients
This commit is contained in:
parent
05e1f04773
commit
70b2fa45e4
|
@ -67,14 +67,14 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($recipients['i']) {
|
if(!empty($recipients['i'])) {
|
||||||
foreach($recipients['i'] as $uid) {
|
foreach($recipients['i'] as $uid) {
|
||||||
if($u = $dms->getUser($uid)) {
|
if($u = $dms->getUser($uid)) {
|
||||||
$res = $contentResult->getContent()->addIndRecipient($u, $user);
|
$res = $contentResult->getContent()->addIndRecipient($u, $user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($recipients['g']) {
|
if(!empty($recipients['g'])) {
|
||||||
foreach($recipients['g'] as $gid) {
|
foreach($recipients['g'] as $gid) {
|
||||||
if($g = $dms->getGroup($gid)) {
|
if($g = $dms->getGroup($gid)) {
|
||||||
$res = $contentResult->getContent()->addGrpRecipient($g, $user);
|
$res = $contentResult->getContent()->addGrpRecipient($g, $user);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user