Skip to content

Commit 0ea1b56

Browse files
authored
Merge pull request #697 from Modicrumb/issue-696
Update RoutesPanel.php
2 parents 2d2a984 + 70071f1 commit 0ea1b56

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
@@ -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)