Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-04-16 08:54:38 -07:00
commit b093e428b3

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'));