From 6972dd4615f7e353f757dd04c4a55673cfad29d0 Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 21 Jan 2012 11:00:42 -0800 Subject: Issue #1402962 by xjm, marcingy, oriol_e9g, msonnabaum: Fixed Render cache shouldn't treat empty strings as a cache miss. --- includes/common.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index f8e40a961..3e79239f5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5679,8 +5679,11 @@ function drupal_render(&$elements) { } // Try to fetch the element's markup from cache and return. - if (isset($elements['#cache']) && $cached_output = drupal_render_cache_get($elements)) { - return $cached_output; + if (isset($elements['#cache'])) { + $cached_output = drupal_render_cache_get($elements); + if ($cached_output !== FALSE) { + return $cached_output; + } } // If #markup is set, ensure #type is set. This allows to specify just #markup -- cgit v1.2.3