replicated query caching fix to dearch1.php

This commit is contained in:
following
2013-07-26 23:12:04 +02:00
parent 8695e8e5ca
commit 38f4ede40c

View File

@ -414,7 +414,7 @@
// This is used by the map, which implements its own query-caching.
if ($bRememberQuery)
{
if ($options['showresult'] != 0) // 'showresult' = "execute query"
if ($queryid == 0 && $options['showresult'] != 0) // 'showresult' = "execute query"
{
sql("INSERT INTO `queries` (`user_id`, `options`, `last_queried`) VALUES (0, '&1', NOW())", serialize($options));
$options['queryid'] = mysql_insert_id();