aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2020-01-01 02:11:19 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2020-01-01 02:12:32 +0100
commitcf450bd01fcdb100ffd2f50ef6e2040156edc887 (patch)
tree64a849e4d88aca5cd4b4ab42a1651f1a37606b2f /phpBB
parent6ee537b3f2f45b300e38a55759566abb0752ec0f (diff)
downloadforums-cf450bd01fcdb100ffd2f50ef6e2040156edc887.tar
forums-cf450bd01fcdb100ffd2f50ef6e2040156edc887.tar.gz
forums-cf450bd01fcdb100ffd2f50ef6e2040156edc887.tar.bz2
forums-cf450bd01fcdb100ffd2f50ef6e2040156edc887.tar.xz
forums-cf450bd01fcdb100ffd2f50ef6e2040156edc887.zip
[ticket/16273] Check whether the index exists in memberlist - PHP 7.4
PHPBB3-16273
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/memberlist.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 35c218cd8c..e933b54c17 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -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'])