mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -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 () {
|
||||
$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'));
|
||||
|
|
Loading…
Reference in a new issue