function fetchMaintainerRoleList($packageType, $checkRoles) { $list = eZPackage::fetchMaintainerRoleList($packageType, $checkRoles); if ($list === false) { return array('error' => array('error_type' => 'kernel', 'error_code' => eZError::KERNEL_NOT_FOUND)); } return array('result' => $list); }