diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 19570e8..a3e3ae6 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -420,7 +420,7 @@ function theme_escape_and_render($arg) { // simple cases already handled. // Early return if this element was pre-rendered (no need to re-render). - if (!empty($arg['#printed']) && isset($arg['#markup']) && strlen($arg['#markup']) > 0) { + if (isset($arg['#printed']) && $arg['#printed'] == TRUE && isset($arg['#markup']) && strlen($arg['#markup']) > 0) { return (string) $arg['#markup']; } $arg['#printed'] = FALSE;