- Fixed bug in cache_get(). Patch by Anarcat.

4.2.x
Dries Buytaert 2003-04-13 14:12:43 +00:00
parent 02f437a2f4
commit 61780d8516
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ function format_size($size) {
}
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;
}