Use proper check for existence
[MAILPOET-2535]
This commit is contained in:
committed by
Jack Kitterhing
parent
f1da8e5c36
commit
650f9a8c90
@@ -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;
|
||||
|
Reference in New Issue
Block a user