From 1ad5da11d31205d8cf04435614e79b346e8108a8 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 29 Jan 2018 17:43:08 +1100 Subject: [PATCH] add debug --- booking.helper.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index 2b1f85b..1b17121 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -188,14 +188,14 @@ function _booking_check_bookings_full() //check the number of people registered against the defined max if ($waitinglist_query->num_ppl >= variable_get('booking_regn_limit', 350)) { - //watchdog('booking', 'There are !num people booked in, which is greater than or equal to the limit of !limit.', - // array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) )); + watchdog('booking', 'There are !num people booked in, which is greater than or equal to the limit of !limit.', + array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) )); return true; } else { - //watchdog('booking', 'There are !num people booked in, which is less than the limit of !limit.', - // array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) )); + watchdog('booking', 'There are !num people booked in, which is less than the limit of !limit.', + array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) )); return false; } }