aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-11-22 19:58:08 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-11-22 19:58:08 +0000
commit08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3 (patch)
treeb25c9db5791b6f51fd8b062616e183855f2f604b /phpBB
parentd46e8e6f98054fc58a126c865184369198d9a2ed (diff)
downloadforums-08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3.tar
forums-08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3.tar.gz
forums-08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3.tar.bz2
forums-08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3.tar.xz
forums-08bd36f0b24f1cbbe70733ae86dbc5aa99c8afe3.zip
Do not try to send jabber notifications if no jid entered (Bug #36775)
git-svn-id: file:///svn/phpbb/trunk@9079 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_messenger.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 73206839b7..9dbb85235e 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)
{