Skip to content

Commit

Permalink
resolve new discussion error refs pkp#10385 (pkp#10386)
Browse files Browse the repository at this point in the history
Co-authored-by: simon <[email protected]>
  • Loading branch information
forgive38 and simon authored Sep 11, 2024
1 parent f7b74d5 commit 14e1f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/grid/queries/QueriesGridHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function updateQuery($args, $request)
$user->getId(),
$request->getContext()->getId()
);
if (in_array(Notification::NOTIFICATION_TYPE_NEW_QUERY, $notificationSubscriptionSettings)) {
if (!$notification || in_array(Notification::NOTIFICATION_TYPE_NEW_QUERY, $notificationSubscriptionSettings)) {
continue;
}

Expand Down

0 comments on commit 14e1f63

Please sign in to comment.