Skip to content

Commit 1d46e4a

Browse files
committed
Another Fallback for missing users in notification #121
1 parent 77dd91f commit 1d46e4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

classes/game_control.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,9 @@ public function gather_notifcation_data(string $messagetype) {
924924
$recepientid = $playerb->id;
925925
break;
926926
}
927-
927+
if ($recepientid == null) {
928+
return null;
929+
}
928930
$tokens = $this->return_push_tokens_of_user($recepientid);
929931

930932
if (!$tokens || count($tokens) === 0) {

0 commit comments

Comments
 (0)