Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2020-01-01 17:45:48 +01:00
commit a556e767e6
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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'])