- Patch #998612 by longwave: drupal_render() doesn't render 0 when set into #markup property.

merge-requests/26/head
Dries Buytaert 2011-04-10 23:38:58 +02:00
parent 37f60420d1
commit 0d05031835
1 changed files with 3 additions and 3 deletions

View File

@ -5568,9 +5568,9 @@ function drupal_render(&$elements) {
return $cached_output; return $cached_output;
} }
// If #markup is not empty, set #type. This allows to specify just #markup on // If #markup is set, ensure #type is set. This allows to specify just #markup
// an element without setting #type. // on an element without setting #type.
if (!empty($elements['#markup']) && !isset($elements['#type'])) { if (isset($elements['#markup']) && !isset($elements['#type'])) {
$elements['#type'] = 'markup'; $elements['#type'] = 'markup';
} }