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) {