]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4049 casting bool to int so it doesn't disappear in the cache key
authorcash <cash.costello@gmail.com>
Sat, 5 Nov 2011 19:34:23 +0000 (15:34 -0400)
committercash <cash.costello@gmail.com>
Sat, 5 Nov 2011 19:34:23 +0000 (15:34 -0400)
engine/lib/database.php

index b5ad7897fff2c68a9063538238272a9b2cab7845..ddfda8f4c82271f123b72aa6d2500ad317d833fd 100644 (file)
@@ -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) {