1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 14:57:37 +02:00

[ticket/16273] Check whether the index exists in memberlist - PHP 7.4

Cast to bool

PHPBB3-16273
This commit is contained in:
3D-I
2019-12-28 01:47:12 +01:00
parent d191eed760
commit ebf7e9f45f

View File

@@ -656,8 +656,8 @@ switch ($mode)
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result); $row = $db->sql_fetchrow($result);
$foe = $row['foe'] ?? false; $foe = (bool) $row['foe'] ?? false;
$friend = $row['friend'] ?? false; $friend = (bool) $row['friend'] ?? false;
$db->sql_freeresult($result); $db->sql_freeresult($result);
if ($config['load_onlinetrack']) if ($config['load_onlinetrack'])