diff options
author | Hari Sankar R <hsr@theinglorio.us> | 2012-04-03 23:04:56 +0530 |
---|---|---|
committer | Hari Sankar R <hsr@theinglorio.us> | 2012-04-03 23:04:56 +0530 |
commit | c5481371b9e4dc6f30f7a9bce1beba21530f9977 (patch) | |
tree | 51e0f2207139c6ddbc206b830e6f99d39b265648 | |
parent | b81a5afc2541e035b78bfe5f7c8374c9d4ae6b9f (diff) | |
download | forums-c5481371b9e4dc6f30f7a9bce1beba21530f9977.tar forums-c5481371b9e4dc6f30f7a9bce1beba21530f9977.tar.gz forums-c5481371b9e4dc6f30f7a9bce1beba21530f9977.tar.bz2 forums-c5481371b9e4dc6f30f7a9bce1beba21530f9977.tar.xz forums-c5481371b9e4dc6f30f7a9bce1beba21530f9977.zip |
[ticket/10561] Changes made to $db->sql_fetchrow().
Changed $db->sql_fetchrow() to $db->sql_fetchfield().
PHPBB3-10561
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files 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; } /** |