From 15a87a8e786b77dd9f6813983271d86e8a3e6148 Mon Sep 17 00:00:00 2001 From: Gazder Bence Date: Thu, 16 Aug 2018 10:35:09 +0200 Subject: [PATCH] Add bool cast to boolean Incident parameters --- app/Http/Controllers/Api/IncidentController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Api/IncidentController.php b/app/Http/Controllers/Api/IncidentController.php index b301202c1..cd705519f 100644 --- a/app/Http/Controllers/Api/IncidentController.php +++ b/app/Http/Controllers/Api/IncidentController.php @@ -71,11 +71,11 @@ class IncidentController extends AbstractApiController Binput::get('name'), Binput::get('status'), Binput::get('message', null, false, false), - Binput::get('visible', true), + (bool) Binput::get('visible', true), Binput::get('component_id'), Binput::get('component_status'), - Binput::get('notify', true), - Binput::get('stickied', false), + (bool) Binput::get('notify', true), + (bool) Binput::get('stickied', false), Binput::get('occurred_at'), Binput::get('template'), Binput::get('vars', []), @@ -103,11 +103,11 @@ class IncidentController extends AbstractApiController Binput::get('name'), Binput::get('status'), Binput::get('message'), - Binput::get('visible', true), + (bool) Binput::get('visible', true), Binput::get('component_id'), Binput::get('component_status'), - Binput::get('notify', true), - Binput::get('stickied', false), + (bool) Binput::get('notify', true), + (bool) Binput::get('stickied', false), Binput::get('occurred_at'), Binput::get('template'), Binput::get('vars', [])