diff options
author | cash <cash.costello@gmail.com> | 2011-11-05 15:34:23 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-05 15:34:23 -0400 |
commit | 2d8d81df30e4a7ee65caf9469ba0cc486d494f29 (patch) | |
tree | cbe71988e6ea8037356a682641ff1463c3d5c339 /engine/lib | |
parent | 604a3bc06281de721e27561341299f1bb9f8ea51 (diff) | |
download | elgg-2d8d81df30e4a7ee65caf9469ba0cc486d494f29.tar.gz elgg-2d8d81df30e4a7ee65caf9469ba0cc486d494f29.tar.bz2 |
Fixes #4049 casting bool to int so it doesn't disappear in the cache key
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/database.php | 7 |
1 files changed, 4 insertions, 3 deletions
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) { |