Notice fixes from Viper007Bond. see #7509

git-svn-id: https://develop.svn.wordpress.org/trunk@9515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-04 20:16:54 +00:00
parent 313f3f75fb
commit 0623c49a93
2 changed files with 7 additions and 6 deletions

View File

@@ -1082,8 +1082,9 @@ class Walker {
$id_field = $this->db_fields['id'];
$id = $e->$id_field;
foreach ( (array)$children_elements[$id] as $child )
$this->unset_children( $child, $children_elements );
if ( !empty($children_elements[$id]) && is_array($children_elements[$id]) )
foreach ( (array) $children_elements[$id] as $child )
$this->unset_children( $child, $children_elements );
if ( isset($children_elements[$id]) )
unset( $children_elements[$id] );