WIP Contract/Billing 2024-07-04
This commit is contained in:
@@ -99,7 +99,7 @@ class CountryModel {
|
||||
if(is_array($limit) && count($limit)) {
|
||||
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {
|
||||
$sql .= " LIMIT ".$limit['start'].", ".$limit['count'];
|
||||
} elseif(is_numeric($count)) {
|
||||
} elseif(is_numeric($limit['count'])) {
|
||||
$sql .= " LIMIT ".$limit['count'];
|
||||
}
|
||||
}
|
||||
@@ -131,7 +131,7 @@ class CountryModel {
|
||||
if(array_key_exists("isocode", $filter)) {
|
||||
$isocode = $db->escape($filter['isocode']);
|
||||
if($isocode) {
|
||||
$where .= " AND Country.`isocode` like '%$isocode%'";
|
||||
$where .= " AND Country.`isocode` like '$isocode'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user