Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Feb 3, 2025
1 parent 59675fb commit 8bf38fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Panel/Fiber.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function searches(): array
// by default, all areas are accessible unless
// the permissions are explicitly set to false
if ($area->isAccessible($this->permissions) !== false) {
foreach ($area->searches() ?? [] as $id => $params) {
foreach ($area->searches() as $id => $params) {
$searches[$id] = [
'icon' => $params['icon'] ?? 'search',
'label' => $params['label'] ?? Str::ucfirst($id),
Expand Down

0 comments on commit 8bf38fb

Please sign in to comment.