fix fatal error when recipients were removed from list

This commit is contained in:
Uwe Steinmann 2016-10-27 14:35:04 +02:00
parent f9d2d9dc48
commit 408cd5a3eb

View File

@ -184,7 +184,7 @@ if (count($receiptIndex["i"]) > 0) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["i"][$p]->getFullName();
$params['recipient'] = $accessIndex["i"][$rx]->getFullName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;
@ -289,7 +289,7 @@ if (count($receiptIndex["g"]) > 0) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["g"][$p]->getName();
$params['recipient'] = $accessIndex["g"][$rx]->getName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;