From 261a9107e244fd5b74999872e570c6774f740d60 Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Tue, 15 Dec 2015 13:46:03 +0100 Subject: [PATCH] Allow empty password --- config.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.inc.php b/config.inc.php index 5523c1b..90c38d9 100644 --- a/config.inc.php +++ b/config.inc.php @@ -40,10 +40,10 @@ for ($i = 1; isset($hosts[$i - 1]); $i++) { if (isset($_ENV['PMA_PORT'])) { $cfg['Servers'][$i]['port'] = $_ENV['PMA_PORT']; } - if (isset($_ENV['PMA_USER']) && isset($_ENV['PMA_PASSWORD'])) { + if (isset($_ENV['PMA_USER'])) { $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = $_ENV['PMA_USER']; - $cfg['Servers'][$i]['password'] = $_ENV['PMA_PASSWORD']; + $cfg['Servers'][$i]['password'] = isset($_ENV['PMA_PASSWORD']) ? $_ENV['PMA_PASSWORD'] : null; } else { $cfg['Servers'][$i]['auth_type'] = 'cookie'; }