From 3db18a9d19bae9a9b76099e70fa2500aeca4fb82 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 10 Apr 2011 23:38:47 +0200 Subject: [PATCH] - Patch #998612 by longwave: drupal_render() doesn't render 0 when set into #markup property. --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index d5380586e88d..6d4d79918e1e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5569,9 +5569,9 @@ function drupal_render(&$elements) { return $cached_output; } - // If #markup is not empty, set #type. This allows to specify just #markup on - // an element without setting #type. - if (!empty($elements['#markup']) && !isset($elements['#type'])) { + // If #markup is set, ensure #type is set. This allows to specify just #markup + // on an element without setting #type. + if (isset($elements['#markup']) && !isset($elements['#type'])) { $elements['#type'] = 'markup'; }