From c73ff606d4fcd578784739b72b3b0c1c37737430 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Wed, 8 Oct 2008 14:00:28 +0000 Subject: [PATCH] oops; bantu noted that this won't work properly git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@8982 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . "'