From d119448d9366a0a3d189892f947b71c8a7954be5 Mon Sep 17 00:00:00 2001 From: data Date: Mon, 23 Feb 2026 11:13:49 +0100 Subject: [PATCH] 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 --- class/globalnotify.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/globalnotify.class.php b/class/globalnotify.class.php index 56aeb20..ce9b86e 100644 --- a/class/globalnotify.class.php +++ b/class/globalnotify.class.php @@ -128,7 +128,7 @@ class GlobalNotify $allNotifications = array(); // 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); if ($resql) { @@ -179,7 +179,7 @@ class GlobalNotify $readNotifications = array(); // 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); if ($resql) {