From 408cd5a3eb574795ed9a2f9f3cd6451903a8d8b6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Oct 2016 14:35:04 +0200 Subject: [PATCH] fix fatal error when recipients were removed from list --- op/op.SetRecipients.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op/op.SetRecipients.php b/op/op.SetRecipients.php index f18abd161..7b8eb9e93 100644 --- a/op/op.SetRecipients.php +++ b/op/op.SetRecipients.php @@ -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;