mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 05:55:32 +02:00
[ticket/11454] Check if the fields are set
PHPBB3-11454
This commit is contained in:
@ -63,14 +63,14 @@ class messenger
|
||||
*/
|
||||
function set_addresses($user)
|
||||
{
|
||||
if ($user['user_email'])
|
||||
if (isset($user['user_email']) && $user['user_email'])
|
||||
{
|
||||
$this->to($user['user_email'], ($user['username']) ?: '');
|
||||
$this->to($user['user_email'], (isset($user['username']) ? $user['username'] : ''));
|
||||
}
|
||||
|
||||
if ($user['user_jabber'])
|
||||
if (isset($user['user_jabber']) && $user['user_jabber'])
|
||||
{
|
||||
$this->im($user['user_jabber'], ($user['username']) ?: '');
|
||||
$this->im($user['user_jabber'], (isset($user['username']) ? $user['username'] : ''));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user