diff --git a/modules/notifications-log/notifications-log.php b/modules/notifications-log/notifications-log.php index 03e2c8ec..921e4c74 100644 --- a/modules/notifications-log/notifications-log.php +++ b/modules/notifications-log/notifications-log.php @@ -323,9 +323,12 @@ public function removeAsyncNotificationLog($params) { if (isset($params['log_id'])) { $comment = get_comment($params['log_id']); - $log = new NotificationsLogModel($comment); + + if ($comment instanceof WP_Comment) { + $log = new NotificationsLogModel($comment); - $log->archive(); + $log->archive(); + } } }