mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
b093e428b3
|
@ -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