From 4c72b7680915de392f5a92383424bcc8486c01f2 Mon Sep 17 00:00:00 2001 From: im4bb <87412469+im4bb@users.noreply.github.com> Date: Tue, 13 Jun 2023 21:26:06 +1000 Subject: [PATCH] [ticket/17146] Use empty for checking if user_jabber is not empty PHPBB3-17146 --- phpBB/phpbb/notification/method/jabber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/notification/method/jabber.php b/phpBB/phpbb/notification/method/jabber.php index 81fdb378e2..9193838425 100644 --- a/phpBB/phpbb/notification/method/jabber.php +++ b/phpBB/phpbb/notification/method/jabber.php @@ -65,7 +65,7 @@ class jabber extends \phpbb\notification\method\messenger_base */ public function is_available(type_interface $notification_type = null) { - return parent::is_available($notification_type) && $this->global_available() && $this->user->data['user_jabber']; + return parent::is_available($notification_type) && $this->global_available() && !empty($this->user->data['user_jabber']); } /**