Return an integer value for free seats if null

This commit is contained in:
snipe 2017-11-02 20:23:04 -07:00
parent 53175d5035
commit 0c794c103b

View file

@ -33,7 +33,7 @@ class LicensesTransformer
'notes' => e($license->notes),
'expiration_date' => Helper::getFormattedDateObject($license->expiration_date, 'date'),
'seats' => (int) $license->seats,
'free_seats_count' => $license->free_seats_count,
'free_seats_count' => (int) $license->free_seats_count,
'license_name' => e($license->license_name),
'license_email' => e($license->license_email),
'maintained' => ($license->maintained == 1) ? true : false,