* @return CRM_Core_DAO_Navigation
*/
public static function add(&$params) {
- $navigation = new CRM_Core_DAO_Navigation();
if (empty($params['id'])) {
- $params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE);
- $params['has_separator'] = CRM_Utils_Array::value('has_separator', $params, FALSE);
+ $params['is_active'] = $params['is_active'] ?? FALSE;
+ $params['has_separator'] = $params['has_separator'] ?? FALSE;
$params['domain_id'] = CRM_Utils_Array::value('domain_id', $params, CRM_Core_Config::domainID());
}