Use proper check for existence

[MAILPOET-2535]
This commit is contained in:
Pavel Dohnal
2019-11-19 14:04:57 +01:00
committed by Jack Kitterhing
parent f1da8e5c36
commit 650f9a8c90
7 changed files with 14 additions and 10 deletions

View File

@@ -105,7 +105,7 @@ class ViewInBrowser {
) return false;
// if queue and subscriber exist, subscriber must have received the newsletter
if ($data->queue &&
if ($data->queue instanceof SendingQueue &&
$data->subscriber &&
!$data->queue->isSubscriberProcessed($data->subscriber->id)
) return false;