mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11454] Correct jabber global available check
Copied from msg_jabber() PBPBB3-11454
This commit is contained in:
parent
ab628cbdb9
commit
212971a3a6
1 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue