From b779ce5910b88cd995a97c4efac97797d52eee61 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 25 Jun 2023 21:03:08 +0200 Subject: [PATCH] [ticket/17010] Remove optional column check for non-existent column PHPBB3-17010 --- phpBB/phpbb/notification/method/webpush.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpBB/phpbb/notification/method/webpush.php b/phpBB/phpbb/notification/method/webpush.php index 94e2e95c69..5ec857af05 100644 --- a/phpBB/phpbb/notification/method/webpush.php +++ b/phpBB/phpbb/notification/method/webpush.php @@ -291,8 +291,7 @@ class webpush extends messenger_base public function prune_notifications($timestamp, $only_read = true): void { $sql = 'DELETE FROM ' . $this->notification_webpush_table . ' - WHERE notification_time < ' . (int) $timestamp . - (($only_read) ? ' AND notification_read = 1' : ''); + WHERE notification_time < ' . (int) $timestamp; $this->db->sql_query($sql); $this->config->set('read_notification_last_gc', (string) time(), false);