Added intval

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-16 08:54:23 -07:00
parent f50b958b63
commit 144a6f28ec

View file

@ -34,7 +34,7 @@ class SettingsServiceProvider extends ServiceProvider
\App::singleton('api_limit_value', function () {
$limit = config('app.max_results');
if ((abs(request('limit')) > 0) && (abs(request('limit')) <= config('app.max_results'))) {
if ((abs(intval(request('limit'))) > 0) && (abs(request('limit')) <= config('app.max_results'))) {
$limit = abs(request('limit'));
}
\Log::debug('Max in env: '.config('app.max_results'));