From 07a21f6116dcf99538c5e6e56902aaf70ce30d75 Mon Sep 17 00:00:00 2001 From: Brian Hanson Date: Wed, 12 Oct 2022 14:50:43 -0500 Subject: [PATCH] Strict installation check Previously if you restored the DB and then tried to run another command, Craft would report that it was not yet installed. The strict test makes sure we're getting an accurage value from `ApplicationTrait::getIsInstalled()` before we show the user a warning Fixes #12101 --- src/console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console/Application.php b/src/console/Application.php index c76903fdf50..183a6768da1 100644 --- a/src/console/Application.php +++ b/src/console/Application.php @@ -70,7 +70,7 @@ public function bootstrap(): void */ public function runAction($route, $params = []): int|BaseResponse|null { - if (!$this->getIsInstalled() && $this->_requireInfoTable($route, $params)) { + if (!$this->getIsInstalled(true) && $this->_requireInfoTable($route, $params)) { // Is the connection valid at least? if (!$this->getIsDbConnectionValid()) { Console::outputWarning('Craft can’t connect to the database. Check your connection settings.');