diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-01-31 15:49:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-01-31 15:49:26 +0000 |
commit | 05a708fb06137758cf7a15a623b4813af2fc005f (patch) | |
tree | 6ae6f50edbcb601329805cbbd7c22d11340327e3 /includes/common.inc | |
parent | 4c9fc80fc48608982a731b03655b02e5ccdb6b17 (diff) | |
download | brdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.gz brdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.bz2 |
- Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 5 |
1 files changed, 4 insertions, 1 deletions
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] != '#'; } /** |