<?php
-// $Id$
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
*/
function civicrm_api3_domain_get($params) {
- $params['version'] = CRM_Utils_array::value('domain_version', $params);
+ $params['version'] = CRM_Utils_Array::value('domain_version', $params);
unset($params['version']);
$bao = new CRM_Core_BAO_Domain();
- if (CRM_Utils_Array::value('current_domain', $params)) {
+ if (!empty($params['current_domain'])) {
$domainBAO = CRM_Core_Config::domainID();
$params['id'] = $domainBAO;
}