From c5481371b9e4dc6f30f7a9bce1beba21530f9977 Mon Sep 17 00:00:00 2001 From: Hari Sankar R Date: Tue, 3 Apr 2012 23:04:56 +0530 Subject: [PATCH] [ticket/10561] Changes made to $db->sql_fetchrow(). Changed $db->sql_fetchrow() to $db->sql_fetchfield(). PHPBB3-10561 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 3881299648..a6ddcdd0a3 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1252,10 +1252,10 @@ function phpbb_style_is_active($style_id) WHERE style_id = ". (int) $style_id; $result = $db->sql_query($sql); - $style_verified = $db->sql_fetchrow($result); + $style_verified = (bool) $db->sql_fetchfield('style_active');; $db->sql_freeresult($result); - return (bool) $style_verified['style_active']; + return $style_verified; } /**