From a80ad5d00f66d5195cdfe1c953079b54d27063dc Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Fri, 9 May 2014 00:31:53 +0200 Subject: [PATCH] [ticket/12174] Remove inline assignment PHPBB3-12174 --- phpBB/phpbb/content_visibility.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {