#13493 fixed error 500

This commit is contained in:
Daniel Cebrian 2024-04-29 11:40:41 +02:00
parent be184c9a3c
commit f5d447f69c
1 changed files with 7 additions and 5 deletions

View File

@ -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 {