add debug
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user