From fc05fb9e4e3427901de1dde14e1819d775d30666 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 19 Apr 2018 09:44:50 +1000 Subject: [PATCH] fix logic --- booking.emails.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking.emails.inc b/booking.emails.inc index 0c05239..aae67f0 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -390,11 +390,12 @@ function _booking_promoted_from_waitinglist_email($nid) { $params['headers']['Bcc'] = BOOKING_EMAIL_DEV_NOTIFY; } - if ($tokens['payment-required'] == 0) { + if ($tokens['payment-required'] >= 0) { watchdog('booking_debug', 'This person has fully paid so sending Not sending promoted-from-waitinglist-fullypaid email.'); $message_body = variable_get('booking_email_waitinglistpromotion_fullypaid'); } else { + watchdog('booking_debug', 'This person has an outstanding balance of ' . $tokens['payment-required']); $message_body = variable_get('booking_email_waitinglistpromotion'); }