From e62a1fe758d47cd6a8f3a2bea5c5591984b73ab7 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Sun, 16 Sep 2018 16:14:33 +0200 Subject: [PATCH] Ask for db prefix only if it is not explicitly set (#3930) --- src/Command/Site/InstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Site/InstallCommand.php b/src/Command/Site/InstallCommand.php index 0a5254079..0a9fa0c4e 100644 --- a/src/Command/Site/InstallCommand.php +++ b/src/Command/Site/InstallCommand.php @@ -287,9 +287,9 @@ function ($profile) { } } - // --db-prefix + // --db-prefix option $dbPrefix = $input->getOption('db-prefix'); - if (!$dbPrefix) { + if ($dbPrefix === null) { $dbPrefix = $this->dbPrefixQuestion(); $input->setOption('db-prefix', $dbPrefix); }