check if $recipients is set

This commit is contained in:
Uwe Steinmann 2020-06-28 19:23:38 +02:00
parent b44a368d6d
commit 9a8b13a1cc

View File

@ -124,6 +124,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
}
$lc = $document->getLatestContent();
if($recipients) {
if($recipients['i']) {
foreach($recipients['i'] as $uid) {
if($u = $dms->getUser($uid)) {
@ -138,6 +139,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
}
}
}
}
if($index) {
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText));