summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-16 22:39:48 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-16 22:39:48 +0000
commit621ec02ee78520d5a630fb473496f58d8065b9d1 (patch)
tree07a98ed40a72651f769da54d1a20b1700de69924 /includes
parentd5e1e83e77e040553d6e1aa3e559253d2559ddab (diff)
downloadbrdo-621ec02ee78520d5a630fb473496f58d8065b9d1.tar.gz
brdo-621ec02ee78520d5a630fb473496f58d8065b9d1.tar.bz2
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 '<script></script>' when script is not allowed).
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
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;
}
/**