Relax type constraint on limit parameter in Database\DBA

This commit is contained in:
Hypolite Petovan 2019-03-20 00:33:26 -04:00
parent 7e2e2f425e
commit 8a48ff1f95

View File

@ -1484,7 +1484,7 @@ class DBA
}
$limit_string = '';
if (isset($params['limit']) && is_int($params['limit'])) {
if (isset($params['limit']) && is_numeric($params['limit'])) {
$limit_string = " LIMIT " . intval($params['limit']);
}