From 7e3c17088106889a3c358a6b9224ac6f6179d24e Mon Sep 17 00:00:00 2001 From: acydburn Date: Sat, 22 Nov 2008 19:58:08 +0000 Subject: [PATCH] Do not try to send jabber notifications if no jid entered (Bug #36775) git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@9079 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_messenger.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 73206839b..9dbb85235 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -97,6 +97,12 @@ class messenger */ function im($address, $realname = '') { + // IM-Addresses could be empty + if (!$address) + { + return; + } + $pos = isset($this->addresses['im']) ? sizeof($this->addresses['im']) : 0; $this->addresses['im'][$pos]['uid'] = trim($address); $this->addresses['im'][$pos]['name'] = trim($realname); @@ -443,6 +449,11 @@ class messenger return false; } + if (empty($this->addresses['im'])) + { + return false; + } + $use_queue = false; if ($config['jab_package_size'] && $this->use_queue) { -- 2.11.4.GIT