added units used to Preorder
This commit is contained in:
@@ -118,6 +118,17 @@ class PreorderModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("building_id", $filter)) {
|
||||
$building_id = $filter['building_id'];
|
||||
if(is_numeric($building_id)) {
|
||||
$where .= " AND building_id=$building_id";
|
||||
} elseif(is_array($building_id)) {
|
||||
$where .= " AND building_id IN (".implode(",",$building_id).")";
|
||||
} elseif($building_id === null) {
|
||||
$where .= " AND building_id IS NULL";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//var_dump($filter, $where);exit;
|
||||
|
||||
Reference in New Issue
Block a user