/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @package CiviCRM_APIv3
* @subpackage API_Membership
*
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* @version $Id: MembershipStatus.php 30171 2010-10-14 09:11:27Z mover $
*
*/
$dao = &CRM_Core_DAO::executeQuery($query, $params);
if ($dao->fetch()) {
// Take the is_admin column in MembershipStatus into consideration when requested
- if (! CRM_Utils_Array::value('ignore_admin_only', $membershipParams) ) {
+ if (empty($membershipParams['ignore_admin_only'])) {
$result = &CRM_Member_BAO_MembershipStatus::getMembershipStatusByDate($dao->start_date, $dao->end_date, $dao->join_date, 'today', TRUE);
}
else {
}
//make is error zero only when valid status found.
- if (CRM_Utils_Array::value('id', $result)) {
+ if (!empty($result['id'])) {
$result['is_error'] = 0;
}
}