fix: SQL filter excluded GLOBALNOTIFY_CRON notifications

Changed filter from 'NOT LIKE GLOBALNOTIFY_CRON%' to 'NOT LIKE %_LASTCHECK'
to include cron notifications while still excluding cache entries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-02-23 11:13:49 +01:00
parent 21076ac922
commit d119448d93

View file

@ -128,7 +128,7 @@ class GlobalNotify
$allNotifications = array(); $allNotifications = array();
// Get all notification constants (exclude internal settings) // Get all notification constants (exclude internal settings)
$sql = "SELECT name, value FROM ".MAIN_DB_PREFIX."const WHERE name LIKE 'GLOBALNOTIFY_%' AND name NOT LIKE 'GLOBALNOTIFY_CRON%' AND value != '' AND value LIKE '[%'"; $sql = "SELECT name, value FROM ".MAIN_DB_PREFIX."const WHERE name LIKE 'GLOBALNOTIFY_%' AND name NOT LIKE '%_LASTCHECK' AND value != '' AND value LIKE '[%'";
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql) { if ($resql) {
@ -179,7 +179,7 @@ class GlobalNotify
$readNotifications = array(); $readNotifications = array();
// Get all notification constants (exclude internal settings) // Get all notification constants (exclude internal settings)
$sql = "SELECT name, value FROM ".MAIN_DB_PREFIX."const WHERE name LIKE 'GLOBALNOTIFY_%' AND name NOT LIKE 'GLOBALNOTIFY_CRON%' AND value != '' AND value LIKE '[%'"; $sql = "SELECT name, value FROM ".MAIN_DB_PREFIX."const WHERE name LIKE 'GLOBALNOTIFY_%' AND name NOT LIKE '%_LASTCHECK' AND value != '' AND value LIKE '[%'";
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql) { if ($resql) {