1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17146] Use empty for checking if user_jabber is not empty

PHPBB3-17146
This commit is contained in:
im4bb
2023-06-13 21:26:06 +10:00
committed by Marc Alexander
parent 65fb35223c
commit 4c72b76809

View File

@@ -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']);
}
/**