summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-10-08 14:00:28 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-10-08 14:00:28 +0000
commitc73ff606d4fcd578784739b72b3b0c1c37737430 (patch)
tree134c2ede2e7fd9d57da2d13633a8ea8b751eca6a
parentI don't think we need those (diff)
downloadforums-origin/2.0.x.tar.gz
forums-origin/2.0.x.tar.bz2
forums-origin/2.0.x.zip
oops; bantu noted that this won't work properlyorigin/2.0.x
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@8982 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 0c575deb1..71b26c3d2 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -692,7 +692,7 @@ else if ( $search_keywords != '' || $search_author != '' || $search_id )
$result_array = serialize($store_search_data);
unset($store_search_data);
- $search_id = crc32(dss_rand());
+ $search_id = abs(crc32(dss_rand()));
$sql = "UPDATE " . SEARCH_TABLE . "
SET search_id = $search_id, search_time = $current_time, search_array = '" . str_replace("\'", "''", $result_array) . "'