diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:42:24 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:42:24 +0000 |
commit | b87692a90186aeb73b74a635756d8aa691f5ef3e (patch) | |
tree | 7e21563743cf23f7168a3e35d1ee47014405ff91 /includes/common.inc | |
parent | a13d829c3377247fe9d1da2bc7437c096caf7168 (diff) | |
download | brdo-b87692a90186aeb73b74a635756d8aa691f5ef3e.tar.gz brdo-b87692a90186aeb73b74a635756d8aa691f5ef3e.tar.bz2 |
#84188 by plumbley, pwolanin, and nickl. Fix some PHP notices.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index b003314fa..9104a78f9 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1773,10 +1773,10 @@ function drupal_render(&$elements) { if (!isset($elements['#children'])) { $children = element_children($elements); /* Render all the children that use a theme function */ - if (isset($elements['#theme']) && !$elements['#theme_used']) { + if (isset($elements['#theme']) && empty($elements['#theme_used'])) { $elements['#theme_used'] = TRUE; - $previous_value = $elements['#value']; + $previous_value = isset($elements['#value']) ? $elements['#value'] : NULL; $previous_type = $elements['#type']; // If we rendered a single element, then we will skip the renderer. if (empty($children)) { @@ -1806,7 +1806,7 @@ function drupal_render(&$elements) { // Until now, we rendered the children, here we render the element itself if (!isset($elements['#printed'])) { - $content = theme(($elements['#type']) ? $elements['#type']: 'markup', $elements); + $content = theme(!empty($elements['#type']) ? $elements['#type'] : 'markup', $elements); $elements['#printed'] = TRUE; } |