From 086fea8eb6672d00cbe2b3fba2bf61b71482fc24 Mon Sep 17 00:00:00 2001 From: joseltorres Date: Wed, 3 Aug 2016 15:03:25 -0700 Subject: [PATCH] made BAO if statements true booleans instead of 0/1 intergers --- CRM/Member/BAO/Membership.php | 6 +++--- api/v3/Membership.php | 0 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 CRM/Member/BAO/Membership.php mode change 100644 => 100755 api/v3/Membership.php diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php old mode 100644 new mode 100755 index f6e57ea0d1..99852be14d --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -603,7 +603,7 @@ INNER JOIN civicrm_membership_type type ON ( type.id = membership.membership_ty * @return int * Id of deleted Membership on success, false otherwise. */ - public static function del($membershipId, $preserveContrib = 0) { + public static function del($membershipId, $preserveContrib = FALSE) { //delete related first and then delete parent. self::deleteRelatedMemberships($membershipId); return self::deleteMembership($membershipId, $preserveContrib); @@ -618,7 +618,7 @@ INNER JOIN civicrm_membership_type type ON ( type.id = membership.membership_ty * @return int * Id of deleted Membership on success, false otherwise. */ - public static function deleteMembership($membershipId, $preserveContrib = 0) { + public static function deleteMembership($membershipId, $preserveContrib = FALSE) { // CRM-12147, retrieve membership data before we delete it for hooks $params = array('id' => $membershipId); $memValues = array(); @@ -1500,7 +1500,7 @@ WHERE civicrm_membership.contact_id = civicrm_contact.id * @return object * $membershipPayment deleted membership payment object */ - public static function deleteMembershipPayment($membershipId, $preserveContrib = 0) { + public static function deleteMembershipPayment($membershipId, $preserveContrib = FALSE) { $membershipPayment = new CRM_Member_DAO_MembershipPayment(); $membershipPayment->membership_id = $membershipId; diff --git a/api/v3/Membership.php b/api/v3/Membership.php old mode 100644 new mode 100755 -- 2.25.1