Finished MaintenanceNotification

This commit is contained in:
Frank Schubert
2024-11-13 18:15:24 +01:00
parent 97dc4446dc
commit 47f71f2310
8 changed files with 465 additions and 14 deletions
+12 -1
View File
@@ -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)) {