Merge pull request #5794 from 3D-I/ticket/16273

[ticket/16273] Check whether the index exists in memberlist - PHP 7.4
This commit is contained in:
Marc Alexander 2019-12-28 21:41:32 +01:00
commit 94808e2cbc
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

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']) ? true : false; $foe = (bool) $row['foe'] ?? false;
$friend = ($row['friend']) ? true : false; $friend = (bool) $row['friend'] ?? false;
$db->sql_freeresult($result); $db->sql_freeresult($result);
if ($config['load_onlinetrack']) if ($config['load_onlinetrack'])