From 10d65ddb1ef5ad79ae5e4f4769b71d420a07e8d4 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 1 Jun 2014 23:38:40 +1000 Subject: [PATCH] two bugfixes in helper --- booking.helper.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index 28afcd8..1d40554 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -494,7 +494,7 @@ function _booking_studygroups_cleanup($nid) elseif ($group->booking_is_reserveleader == 'Y') $role = "Reserve group #" . $group->booking_studygroup_id; */ - $message = t("Removing id !nid from group id !group with role !role.", + $message = t("Removing id !nid from group id !group with role !role", array('!nid' => $nid, '!group' => $group->booking_studygroup_id, ' !role' => _booking_studygroup_role_lookup($group->booking_studygroup_role) ) @@ -818,7 +818,7 @@ function _booking_amount_owing($person, $amount_paid = 0, $include_paypal_fees = function _booking_process_refund($person) { global $event; - //$refund_due = 0; + $refund = 0; //calculate amount to be refunded $paid = _booking_amount_paid($person->nid, $person); @@ -883,8 +883,6 @@ function _booking_process_refund($person) )) ->execute(); } - - //return the amount to refund this person return $refund;