mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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
This commit is contained in:
parent
d46e8e6f98
commit
08bd36f0b2
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue