From 2d8d81df30e4a7ee65caf9469ba0cc486d494f29 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Nov 2011 15:34:23 -0400 Subject: Fixes #4049 casting bool to int so it doesn't disappear in the cache key --- engine/lib/database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/lib/database.php') diff --git a/engine/lib/database.php b/engine/lib/database.php index b5ad7897f..ddfda8f4c 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -402,9 +402,10 @@ function elgg_query_runner($query, $callback = null, $single = false) { $query = elgg_format_query($query); - // since we want to cache results of running the callback, we need to - // need to namespace the query with the callback, and single result request. - $hash = (string)$callback . (string)$single . $query; + // Since we want to cache results of running the callback, we need to + // need to namespace the query with the callback and single result request. + // http://trac.elgg.org/ticket/4049 + $hash = (string)$callback . (int)$single . $query; // Is cached? if ($DB_QUERY_CACHE) { -- cgit v1.2.3