mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11454] Check if the fields are set
PHPBB3-11454
This commit is contained in:
parent
fcdfe748b8
commit
0d2d72e8ee
1 changed files with 4 additions and 4 deletions
|
@ -63,14 +63,14 @@ class messenger
|
||||||
*/
|
*/
|
||||||
function set_addresses($user)
|
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'] : ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue