From 621ec02ee78520d5a630fb473496f58d8065b9d1 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 16 Aug 2004 22:39:48 +0000 Subject: Fixing a faulty check in cache_get() which prevented empty data from being returned. This was required for filtercache, where a cache entry with empty data can have meaning (e.g. as the output for the input '' when script is not allowed). --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 0d1fb1562..94c1b077f 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -104,7 +104,7 @@ function variable_del($name) { */ function cache_get($key) { $cache = db_fetch_object(db_query("SELECT data, created, headers FROM {cache} WHERE cid = '%s'", $key)); - return $cache->data ? $cache : 0; + return isset($cache->data) ? $cache : 0; } /** -- cgit v1.2.3