mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
a556e767e6
1 changed files with 4 additions and 3 deletions
|
@ -653,11 +653,12 @@ switch ($mode)
|
||||||
FROM ' . ZEBRA_TABLE . "
|
FROM ' . ZEBRA_TABLE . "
|
||||||
WHERE zebra_id = $user_id
|
WHERE zebra_id = $user_id
|
||||||
AND user_id = {$user->data['user_id']}";
|
AND user_id = {$user->data['user_id']}";
|
||||||
|
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
$row = $db->sql_fetchrow($result);
|
$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);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
if ($config['load_onlinetrack'])
|
if ($config['load_onlinetrack'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue