mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Added intval
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f50b958b63
commit
144a6f28ec
|
@ -34,7 +34,7 @@ class SettingsServiceProvider extends ServiceProvider
|
||||||
\App::singleton('api_limit_value', function () {
|
\App::singleton('api_limit_value', function () {
|
||||||
$limit = config('app.max_results');
|
$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'));
|
$limit = abs(request('limit'));
|
||||||
}
|
}
|
||||||
\Log::debug('Max in env: '.config('app.max_results'));
|
\Log::debug('Max in env: '.config('app.max_results'));
|
||||||
|
|
Loading…
Reference in a new issue