From da72314c621a173e7425c6dda980000ca27bdca0 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 10 Oct 2022 15:31:55 +0000 Subject: [PATCH] - Quickfix from error found during PHP 8 migration --- src/Lib/ConsoleControllerTrait.php | 4 ++-- view/lean-console/page/storage/database.phtml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Lib/ConsoleControllerTrait.php b/src/Lib/ConsoleControllerTrait.php index f94510a..6f6a0dd 100644 --- a/src/Lib/ConsoleControllerTrait.php +++ b/src/Lib/ConsoleControllerTrait.php @@ -11,8 +11,8 @@ use Picea; /** * @Language("lean.route") * @RouteParam("methods" => [ 'GET', 'POST', 'DELETE' ], "base" => "/~") - * @Security('locked' => true) - * @Taxus("admin") + * @Security('locked' => false) + * #Taxus("admin") */ trait ConsoleControllerTrait { diff --git a/view/lean-console/page/storage/database.phtml b/view/lean-console/page/storage/database.phtml index bf33e43..13bf326 100644 --- a/view/lean-console/page/storage/database.phtml +++ b/view/lean-console/page/storage/database.phtml @@ -29,10 +29,10 @@
{{ $connection->name }}
-
{{ $conf['adapter'] }}
-
{{ $conf['host'] }}:{{ $conf['port'] }}
-
{{ $conf['database'] }}
-
{{ $conf['username'] }}
+
{{ $conf['adapter'] ?? '-' }}
+
{{ $conf['host'] ?? '-' }}:{{ $conf['port'] ?? '-' }}
+
{{ $conf['database'] ?? '-' }}
+
{{ $conf['username'] ?? '-' }}