mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
use is_numeric instead of is_int
This commit is contained in:
parent
4188849ae1
commit
7eee239378
|
@ -29,7 +29,7 @@ class StoreAssetRequest extends ImageUploadRequest
|
|||
// Guard against users passing in an array for company_id instead of an integer.
|
||||
// If the company_id is not an integer then we simply use what was
|
||||
// provided to be caught by model level validation later.
|
||||
$idForCurrentUser = is_int($this->company_id)
|
||||
$idForCurrentUser = is_numeric($this->company_id)
|
||||
? Company::getIdForCurrentUser($this->company_id)
|
||||
: $this->company_id;
|
||||
|
||||
|
|
Loading…
Reference in a new issue