fix PHP8 fatals

This commit is contained in:
Steffen Müller
2023-03-12 13:50:28 +01:00
parent 7601038f6b
commit 8845ad65f0
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -60,6 +60,11 @@ class Notification
$sql = "SELECT DISTINCT subscriberIDFK FROM services_subscriber WHERE serviceIDFK IN (" . $this->serviceids . ")";
$query = $mysqli->query($sql);
if (0 === $query->num_rows) {
// skip processing if no one needs to be notified
return;
}
// Create the queue tasks for email/telegram notifications
$queue = new Queue();
$queue->status = $queue->all_status['populating'];