summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-13 06:41:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-13 06:41:23 +0000
commit7e99fdd222b50a3e833ce9fed5173f9a58e44e9e (patch)
treef68bd87ca23e2de98053d7cad99a99b5f1f2bf78 /includes
parent37b627c793fc84fb851fc3dd99544f803b151609 (diff)
downloadbrdo-7e99fdd222b50a3e833ce9fed5173f9a58e44e9e.tar.gz
brdo-7e99fdd222b50a3e833ce9fed5173f9a58e44e9e.tar.bz2
#734234 by quicksketch, moonray, Melissamcewen, ekes, flobruit: Fixed Radio buttons throw warning in element_children() if keyed with '' (empty string).
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index dc4624d6c..71805afac 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -5548,7 +5548,7 @@ function element_children(&$elements, $sort = FALSE) {
$children = array();
$sortable = FALSE;
foreach ($elements as $key => $value) {
- if ($key[0] !== '#') {
+ if ($key === '' || $key[0] !== '#') {
$children[$key] = $value;
if (is_array($value) && isset($value['#weight'])) {
$sortable = TRUE;