fix logic

This commit is contained in:
Nathan Coad
2018-04-19 09:44:50 +10:00
parent e7a0999da8
commit fc05fb9e4e

View File

@@ -390,11 +390,12 @@ function _booking_promoted_from_waitinglist_email($nid) {
$params['headers']['Bcc'] = BOOKING_EMAIL_DEV_NOTIFY; $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.'); 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'); $message_body = variable_get('booking_email_waitinglistpromotion_fullypaid');
} }
else { else {
watchdog('booking_debug', 'This person has an outstanding balance of ' . $tokens['payment-required']);
$message_body = variable_get('booking_email_waitinglistpromotion'); $message_body = variable_get('booking_email_waitinglistpromotion');
} }