mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/17010] Remove optional column check for non-existent column
PHPBB3-17010
This commit is contained in:
@@ -291,8 +291,7 @@ class webpush extends messenger_base
|
|||||||
public function prune_notifications($timestamp, $only_read = true): void
|
public function prune_notifications($timestamp, $only_read = true): void
|
||||||
{
|
{
|
||||||
$sql = 'DELETE FROM ' . $this->notification_webpush_table . '
|
$sql = 'DELETE FROM ' . $this->notification_webpush_table . '
|
||||||
WHERE notification_time < ' . (int) $timestamp .
|
WHERE notification_time < ' . (int) $timestamp;
|
||||||
(($only_read) ? ' AND notification_read = 1' : '');
|
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
$this->config->set('read_notification_last_gc', (string) time(), false);
|
$this->config->set('read_notification_last_gc', (string) time(), false);
|
||||||
|
Reference in New Issue
Block a user