#13493 fixed error 500
This commit is contained in:
parent
be184c9a3c
commit
f5d447f69c
|
@ -1148,11 +1148,13 @@ function get_inventory_basic_info_sql($params, $count=false)
|
|||
}
|
||||
|
||||
if ($count !== true) {
|
||||
$limit_condition = sprintf(
|
||||
'LIMIT %d, %d',
|
||||
$params['start'],
|
||||
$params['length']
|
||||
);
|
||||
if ((int) $params['length'] > -1) {
|
||||
$limit_condition = sprintf(
|
||||
'LIMIT %d, %d',
|
||||
$params['start'],
|
||||
$params['length']
|
||||
);
|
||||
}
|
||||
|
||||
$order_condition = sprintf('ORDER BY %s', $params['order']);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue