From 05a708fb06137758cf7a15a623b4813af2fc005f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 31 Jan 2007 15:49:26 +0000 Subject: - Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. --- includes/common.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index a7ea1cab5..1512f30ce 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1450,6 +1450,8 @@ function drupal_get_css($css = NULL) { if (!isset($css)) { $css = drupal_add_css(); } + $no_module_preprocess = ''; + $no_theme_preprocess = ''; $preprocess_css = variable_get('preprocess_css', FALSE); $directory = file_directory_path(); @@ -2120,6 +2122,7 @@ function drupal_render(&$elements) { if (!isset($elements['#sorted'])) { uasort($elements, "_element_sort"); } + $elements += array('#title' => NULL, '#description' => NULL); if (!isset($elements['#children'])) { $children = element_children($elements); /* Render all the children that use a theme function */ @@ -2201,7 +2204,7 @@ function element_properties($element) { * Check if the key is a child. */ function element_child($key) { - return $key[0] != '#'; + return !isset($key[0]) || $key[0] != '#'; } /** -- cgit v1.2.3