From 5bc4c5765e2a64eb92b1128f104691fecc0049ef Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 7 Apr 2025 19:39:23 +0200 Subject: [PATCH] [ticket/17490] Use isset instead of !empty() PHPBB-17490 --- phpBB/phpbb/messenger/method/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/messenger/method/base.php b/phpBB/phpbb/messenger/method/base.php index 0fb46b2cb3..c8c7129caf 100644 --- a/phpBB/phpbb/messenger/method/base.php +++ b/phpBB/phpbb/messenger/method/base.php @@ -423,7 +423,7 @@ abstract class base implements messenger_interface */ public function save_queue(): void { - if ($this->use_queue && !empty($this->queue)) + if ($this->use_queue && isset($this->queue)) { $this->queue->save(); }