aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_phpbb.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-22 17:30:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-22 17:30:20 +0000
commit1e2ed1bc9f8128d4d252c6761b50216d0b01998e (patch)
treea0f77cfde33df5debf9cc45a1444a8df5135f0fb /phpBB/includes/search/fulltext_phpbb.php
parent02239880a55f38828b1f4151fc2d2a658312b98e (diff)
downloadforums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.gz
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.bz2
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.xz
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.zip
adjusting sql_freeresult a bit as well as our error handler (it now prints out if it is because of DEBUG_EXTRA being defined - which is not enabled within the betas/rc's and stable releases).
git-svn-id: file:///svn/phpbb/trunk@5699 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_phpbb.php')
-rw-r--r--phpBB/includes/search/fulltext_phpbb.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_phpbb.php b/phpBB/includes/search/fulltext_phpbb.php
index 4403c92c46..9ea3c5f4cd 100644
--- a/phpBB/includes/search/fulltext_phpbb.php
+++ b/phpBB/includes/search/fulltext_phpbb.php
@@ -1015,13 +1015,13 @@ class fulltext_phpbb extends search_backend
$sql = 'SELECT COUNT(*) as total_words
FROM ' . SEARCH_WORD_TABLE;
$result = $db->sql_query($sql);
- $this->stats['total_words'] = $db->sql_fetchfield('total_words', 0, $result);
+ $this->stats['total_words'] = (int) $db->sql_fetchfield('total_words');
$db->sql_freeresult($result);
$sql = 'SELECT COUNT(*) as total_matches
FROM ' . SEARCH_MATCH_TABLE;
$result = $db->sql_query($sql);
- $this->stats['total_matches'] = $db->sql_fetchfield('total_matches', 0, $result);
+ $this->stats['total_matches'] = (int) $db->sql_fetchfield('total_matches');
$db->sql_freeresult($result);
}