Skip to content

Commit

Permalink
Check component_id isset before we use it
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jan 23, 2015
1 parent 7deb73b commit 86d30b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/DashIncidentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function createIncidentAction()
}

// 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,
]);
Expand Down

0 comments on commit 86d30b8

Please sign in to comment.