Skip to content

Commit 70071f1

Browse files
authored
Update RoutesPanel.php
Fixed notices popping up because there is no isset check
1 parent 2d2a984 commit 70071f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Panel/RoutesPanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function summary()
3737
}
3838

3939
$routes = array_filter(Router::routes(), function ($route) {
40-
return $route->defaults['plugin'] !== 'DebugKit';
40+
return (!isset($routes->defaults['plugin'])) || $route->defaults['plugin'] !== 'DebugKit';
4141
});
4242

4343
return count($routes);

0 commit comments

Comments
 (0)