add debug

This commit is contained in:
Nathan Coad
2018-01-29 17:43:08 +11:00
parent 2a5fce9dc4
commit 1ad5da11d3

View File

@@ -188,14 +188,14 @@ function _booking_check_bookings_full()
//check the number of people registered against the defined max //check the number of people registered against the defined max
if ($waitinglist_query->num_ppl >= variable_get('booking_regn_limit', 350)) 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.', 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) )); array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
return true; return true;
} }
else else
{ {
//watchdog('booking', 'There are !num people booked in, which is less than the limit of !limit.', 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) )); array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
return false; return false;
} }
} }