summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php2
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) . "'