Don't render subscription confirmation when user doesn't exits
[MAILPOET-2950]
This commit is contained in:
committed by
Veljko V
parent
f5b836e898
commit
483fd1a275
@@ -557,6 +557,9 @@ class Pages {
|
||||
}
|
||||
|
||||
private function getConfirmUnsubscribeContent() {
|
||||
if (!$this->isPreview() && $this->subscriber === null) {
|
||||
return '';
|
||||
}
|
||||
$queueId = isset($this->data['queueId']) ? (int)$this->data['queueId'] : null;
|
||||
$templateData = [
|
||||
'unsubscribeUrl' => $this->subscriptionUrlFactory->getUnsubscribeUrl($this->subscriber, $queueId),
|
||||
|
Reference in New Issue
Block a user