Zeile 101 | Zeile 101 |
---|
* @param int $i Internal counter * @return array Array of child nodes */
|
* @param int $i Internal counter * @return array Array of child nodes */
|
function get_children($vals, &$i)
| function get_children($vals=array(), &$i)
|
{ $children = array();
| { $children = array();
|
Zeile 171 | Zeile 171 |
---|
// if the array no longer has any key/val sets // and therefore is at the deepest level, then // store the string value
|
// if the array no longer has any key/val sets // and therefore is at the deepest level, then // store the string value
|
if(count($array[$key]) <= 0)
| if(is_array($array[$key]) && count($array[$key]) <= 0)
|
{ $array[$key] = $val['value']; }
| { $array[$key] = $val['value']; }
|