Commit 61780d85 authored by Dries's avatar Dries
Browse files

- Fixed bug in cache_get().  Patch by Anarcat.
parent 02f437a2
...@@ -640,7 +640,7 @@ function format_size($size) { ...@@ -640,7 +640,7 @@ function format_size($size) {
} }
function cache_get($key) { function cache_get($key) {
$cache = db_fetch_object(db_query("SELECT data, created FROM cache WHERE cid = '%d'", $key)); $cache = db_fetch_object(db_query("SELECT data, created FROM cache WHERE cid = '%s'", $key));
return $cache->data ? $cache : 0; return $cache->data ? $cache : 0;
} }
......
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