$city_id = $params['city_id'];
$region_id = $params['region_id'];
$limit = $params['limit'];
+ $free = $params['free'];
$this->postAddTimes = true;
$whereParts = array();
$whereParts[] = "T.ref_type = ".$this->config['ref_type_numb']['Member']." and T.ref_dest = $member_id ";
}
+ if ( true === $free ) {
+ $whereParts[] = "T.free = true";
+ }
+
if ( $amenity_id = filter_var( $amenity_id, FILTER_VALIDATE_INT ) ) {
$whereParts[] = "
T.id IN (
$customPage = false;
$groupByDay = true;
$groupMonth = false;
+ $free = null;
$this->notInCat = array();
$pdfCategoryList = '';
ORDER BY name";
$regionData = $this->wpdb->get_results( $regionSql, ARRAY_A );
+ if ( isset( $actionData['request']['free'] ) ) {
+ $free = filter_var( $actionData['request']['free'], FILTER_VALIDATE_BOOLEAN );
+ }
+ if ( isset( $_REQUEST['free'] ) ) {
+ $free = filter_var( $_REQUEST['free'], FILTER_VALIDATE_BOOLEAN );
+ }
// If there's a pageslug as attribute then update the pageSlug
if ( isset ( $actionData['request']['pageslug'] ) ) {
$pageSlug = $actionData['request']['pageslug'];
'city_id' => $cityId,
'region_id' => $regionId,
'limit' => $limit,
+ 'free' => (bool)$free,
);
switch ( $action ) {