diff --git a/app/Providers/SettingsServiceProvider.php b/app/Providers/SettingsServiceProvider.php index 3f60fd8e6f..371fc234de 100644 --- a/app/Providers/SettingsServiceProvider.php +++ b/app/Providers/SettingsServiceProvider.php @@ -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'));