fixed new borderpoint filter
This commit is contained in:
@@ -231,9 +231,9 @@ class PreorderController extends mfBaseController {
|
||||
$new_filter['addon_services'] = true;
|
||||
}
|
||||
|
||||
if(array_key_exists("borderpoint", $filter) && $filter['borderpoint'] == 1) {
|
||||
if(array_key_exists("borderpoint", $filter) && $filter['borderpoint'] === 'with') {
|
||||
$new_filter['add-where'] .= " AND (adb_hausnummer.borderpoint_lat IS NOT NULL AND adb_hausnummer.borderpoint_long IS NOT NULL)";
|
||||
} elseif(array_key_exists("borderpoint", $filter) && $filter['borderpoint'] == 0) {
|
||||
} elseif(array_key_exists("borderpoint", $filter) && $filter['borderpoint'] === 'without') {
|
||||
$new_filter['add-where'] .= " AND (adb_hausnummer.borderpoint_lat IS NULL OR adb_hausnummer.borderpoint_long IS NULL)";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user