aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-02-08 16:43:39 +0000
committerAndreas Fischer <bantu@phpbb.com>2010-02-08 16:43:39 +0000
commit037aea067b5e2200c52413f8b397665bf93b385e (patch)
treedfe5b45f255166c3c7a1959608c7b4914abd1090 /phpBB/includes/captcha
parentd26f66703b0164c5cdd9dc4abf77450faf53ba41 (diff)
downloadforums-037aea067b5e2200c52413f8b397665bf93b385e.tar
forums-037aea067b5e2200c52413f8b397665bf93b385e.tar.gz
forums-037aea067b5e2200c52413f8b397665bf93b385e.tar.bz2
forums-037aea067b5e2200c52413f8b397665bf93b385e.tar.xz
forums-037aea067b5e2200c52413f8b397665bf93b385e.zip
Fix Bug #57455 - Fix problems with firebird by no longer using 'count' as a column alias.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10484 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
index ef4d8e9fac..49a64b9339 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
@@ -137,14 +137,14 @@ class phpbb_captcha_qa
return false;
}
- $sql = 'SELECT COUNT(question_id) as count
+ $sql = 'SELECT COUNT(question_id) AS question_count
FROM ' . CAPTCHA_QUESTIONS_TABLE . "
WHERE lang_iso = '" . $db->sql_escape($config['default_lang']) . "'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
- return ((bool) $row['count']);
+ return ((bool) $row['question_count']);
}
/**