Skip to content

Commit 586c62b

Browse files
Modicrumbmarkstory
authored andcommitted
Update RoutesPanel.php
Fixed notices popping up because there is no isset check Migrate fix from #697 to 4.x. Fixes #726
1 parent e2b02fb commit 586c62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Panel/RoutesPanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RoutesPanel extends DebugPanel
3232
public function summary()
3333
{
3434
$routes = array_filter(Router::routes(), function ($route) {
35-
return $route->defaults['plugin'] !== 'DebugKit';
35+
return (!isset($routes->defaults['plugin'])) || $route->defaults['plugin'] !== 'DebugKit';
3636
});
3737

3838
return (string)count($routes);

0 commit comments

Comments
 (0)