mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
check if $recipients is set
This commit is contained in:
parent
b44a368d6d
commit
9a8b13a1cc
|
@ -124,17 +124,19 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
|
||||||
}
|
}
|
||||||
|
|
||||||
$lc = $document->getLatestContent();
|
$lc = $document->getLatestContent();
|
||||||
if($recipients['i']) {
|
if($recipients) {
|
||||||
foreach($recipients['i'] as $uid) {
|
if($recipients['i']) {
|
||||||
if($u = $dms->getUser($uid)) {
|
foreach($recipients['i'] as $uid) {
|
||||||
$res = $lc->addIndRecipient($u, $user);
|
if($u = $dms->getUser($uid)) {
|
||||||
|
$res = $lc->addIndRecipient($u, $user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if($recipients['g']) {
|
||||||
if($recipients['g']) {
|
foreach($recipients['g'] as $gid) {
|
||||||
foreach($recipients['g'] as $gid) {
|
if($g = $dms->getGroup($gid)) {
|
||||||
if($g = $dms->getGroup($gid)) {
|
$res = $lc->addGrpRecipient($g, $user);
|
||||||
$res = $lc->addGrpRecipient($g, $user);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user