Finished MaintenanceNotification
This commit is contained in:
@@ -200,7 +200,18 @@ class TerminationModel {
|
||||
$where .= " AND Building.street LIKE '%$building_street%'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists("building_zip", $filter)) {
|
||||
$building_zip = $filter['building_zip'];
|
||||
if(is_array($building_zip)) {
|
||||
if(count($building_zip)) {
|
||||
$where .= " AND Building.zip IN ('".implode("','", $building_zip)."')";
|
||||
}
|
||||
} elseif($building_zip) {
|
||||
$building_zip = FronkDB::singleton()->escape($filter['building_zip']);
|
||||
$where .= " AND Building.zip = '$building_zip'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists("status", $filter)) {
|
||||
|
||||
Reference in New Issue
Block a user