summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
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;
}
/**