Skip to content

Commit

Permalink
Fix 'Kirby\Panel\Panel::area(): Argument Daandelange#2 ($area) must b…
Browse files Browse the repository at this point in the history
…e of type array|string, null given'

Fixes Daandelange#37
  • Loading branch information
CHE1RON committed Jun 6, 2023
1 parent 4b48dee commit 29835c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'areas' => [
'simplestats' => function ($kirby) {

if(!$kirby->user() || !$kirby->user()->hasSimpleStatsPanelAccess()) return null;
if(!$kirby->user() || !$kirby->user()->hasSimpleStatsPanelAccess()) return [];

return [
// label for the menu and the breadcrumb
Expand Down

0 comments on commit 29835c3

Please sign in to comment.