Commit e0cf9c21 authored by webchick's avatar webchick

#319403 by Crell: use fetchObject() in cache.inc for consistency with other db fetch routines.

parent 89b0570d
......@@ -29,7 +29,7 @@ function cache_get($cid, $table = 'cache') {
->execute();
}
$cache = db_query("SELECT data, created, headers, expire, serialized FROM {" . $table . "} WHERE cid = :cid", array(':cid' => $cid))->fetch();
$cache = db_query("SELECT data, created, headers, expire, serialized FROM {" . $table . "} WHERE cid = :cid", array(':cid' => $cid))->fetchObject();
if (isset($cache->data)) {
// If the data is permanent or we're not enforcing a minimum cache lifetime
// always return the cached data.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment