I insert one code here and it fixed : function getMenu($params){ $items = array(); if($params->get('menu')) { $menu = &JSite::getMenu(); $items = $menu->getItems('menutype', $params->get('menu')); } just init the Variable of children .
More