1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

[ticket/11454] Correct jabber global available check

Copied from msg_jabber()

PBPBB3-11454
This commit is contained in:
Nathaniel Guse 2013-04-24 10:37:53 -05:00
parent ab628cbdb9
commit 212971a3a6

View File

@ -48,7 +48,13 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_messeng
*/
public function global_available()
{
return ($this->config['jab_enable'] && @extension_loaded('xml'));
return !(
empty($this->config['jab_enable']) ||
empty($this->config['jab_host']) ||
empty($this->config['jab_username']) ||
empty($this->config['jab_password']) ||
!@extension_loaded('xml')
);
}
public function notify()