diff options
author | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-28 01:47:12 +0100 |
---|---|---|
committer | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-28 01:47:43 +0100 |
commit | ebf7e9f45f00bfff184980d7edd3efa765df1c4b (patch) | |
tree | 43db9ba2e05e73c4911a86a0d80df504486e860f /phpBB/memberlist.php | |
parent | d191eed760cc1e8c6cc799b68afe59f7405ea986 (diff) | |
download | forums-ebf7e9f45f00bfff184980d7edd3efa765df1c4b.tar forums-ebf7e9f45f00bfff184980d7edd3efa765df1c4b.tar.gz forums-ebf7e9f45f00bfff184980d7edd3efa765df1c4b.tar.bz2 forums-ebf7e9f45f00bfff184980d7edd3efa765df1c4b.tar.xz forums-ebf7e9f45f00bfff184980d7edd3efa765df1c4b.zip |
[ticket/16273] Check whether the index exists in memberlist - PHP 7.4
Cast to bool
PHPBB3-16273
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index e28e18beba..35c218cd8c 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -656,8 +656,8 @@ switch ($mode) $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); - $foe = $row['foe'] ?? false; - $friend = $row['friend'] ?? false; + $foe = (bool) $row['foe'] ?? false; + $friend = (bool) $row['friend'] ?? false; $db->sql_freeresult($result); if ($config['load_onlinetrack']) |