aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/content_visibility.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/content_visibility.php b/phpBB/phpbb/content_visibility.php
index 7cb7bd6922..f532d7e61e 100644
--- a/phpBB/phpbb/content_visibility.php
+++ b/phpBB/phpbb/content_visibility.php
@@ -448,7 +448,8 @@ class content_visibility
AND ' . $this->db->sql_in_set('post_id', $post_id, true);
$result = $this->db->sql_query_limit($sql, 1);
- if ($row = $this->db->sql_fetchrow($result))
+ $row = $this->db->sql_fetchrow($result);
+ if ($row != false)
{
if ($visibility == ITEM_APPROVED)
{