mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 12:52:08 +02:00
Merge pull request #5807 from 3D-I/ticket/16273
[ticket/16273] Check whether the index exists in memberlist - PHP 7.4
This commit is contained in:
commit
b9193f35c1
@ -653,11 +653,12 @@ switch ($mode)
|
||||
FROM ' . ZEBRA_TABLE . "
|
||||
WHERE zebra_id = $user_id
|
||||
AND user_id = {$user->data['user_id']}";
|
||||
|
||||
$result = $db->sql_query($sql);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$foe = (bool) $row['foe'] ?? false;
|
||||
$friend = (bool) $row['friend'] ?? false;
|
||||
|
||||
$foe = $row ? (bool) $row['foe'] : false;
|
||||
$friend = $row ? (bool) $row['friend'] : false;
|
||||
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if ($config['load_onlinetrack'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user