From 0c794c103b5d46b69ae4872008d23641f84f44a2 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 2 Nov 2017 20:23:04 -0700 Subject: [PATCH] Return an integer value for free seats if null --- app/Http/Transformers/LicensesTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Transformers/LicensesTransformer.php b/app/Http/Transformers/LicensesTransformer.php index 077f0908e1..e96a9ed849 100644 --- a/app/Http/Transformers/LicensesTransformer.php +++ b/app/Http/Transformers/LicensesTransformer.php @@ -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,