Fixed always setting unit_count filter to 0

This commit is contained in:
Frank Schubert
2023-04-18 15:44:03 +02:00
parent 3e973640a6
commit df088b56eb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ class PreorderModel {
$where .= " AND adb_hausnummer.unit_count = 1";
} elseif(intval($unit_count) === 2) {
$where .= " AND adb_hausnummer.unit_count > 1";
} elseif(intval($unit_count) === 0) {
} elseif(strlen($unit_count) && intval($unit_count) === 0) {
$where .= " AND adb_hausnummer.unit_count = 0 OR adb_hausnummer.unit_count IS NULL";
}
}