diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2008-10-08 14:00:28 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2008-10-08 14:00:28 +0000 |
commit | c73ff606d4fcd578784739b72b3b0c1c37737430 (patch) | |
tree | 134c2ede2e7fd9d57da2d13633a8ea8b751eca6a | |
parent | I don't think we need those (diff) | |
download | phpbb-origin/2.0.x.tar.gz phpbb-origin/2.0.x.tar.bz2 phpbb-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 0c575deb1f..71b26c3d2f 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) . "' |