Skip to content

Commit

Permalink
FIX: Undefined array key "controller"
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacarpet committed May 9, 2024
1 parent dad6bfb commit 6c19e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AffordableMobiles/sqlcommenter/PDO/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getTraceData(): array
if (!empty($action['controller'])) {
$comment['controller'] = explode('@', class_basename($action['controller']))[0];
}
if (!empty($action && $action['controller'] && str_contains($action['controller'], '@'))) {
if (!empty($action) && !empty($action['controller']) && str_contains($action['controller'] ?? '', '@')) {
$comment['action'] = explode('@', class_basename($action['controller']))[1];
}

Expand Down

0 comments on commit 6c19e39

Please sign in to comment.