Fixed link from Order to Building/Termination

This commit is contained in:
Frank Schubert
2021-09-20 11:34:21 +02:00
parent 79cf7ba3be
commit b169de1d72
2 changed files with 5 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ class BuildingModel {
LEFT JOIN Buildingstatus ON (Buildingstatus.id = Building.status_id)
WHERE $where
ORDER BY network_id, pop_id, street, zip, city";
if(is_array($limit) && count($limit)) {
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {
$sql .= " LIMIT ".$limit['start'].", ".$limit['count'];
@@ -233,4 +233,4 @@ class BuildingModel {
return $where;
}
}
}