From 86d30b82e11f19033be9f4d248cfef9ce8e5cca7 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 23 Jan 2015 17:38:52 +0000 Subject: [PATCH] Check component_id isset before we use it --- src/Http/Controllers/DashIncidentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/DashIncidentController.php b/src/Http/Controllers/DashIncidentController.php index aee21e03..ac16851d 100644 --- a/src/Http/Controllers/DashIncidentController.php +++ b/src/Http/Controllers/DashIncidentController.php @@ -76,7 +76,7 @@ class DashIncidentController extends Controller } // Update the component. - if ((int) $incidentData['component_id'] > 0) { + if (isset($incidentData['component_id']) && (int) $incidentData['component_id'] > 0) { Component::find($incidentData['component_id'])->update([ 'status' => $componentStatus, ]);