From 73a1b59f2b351cef9ade1dddd5a0b54b435c3289 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 Jan 2015 17:06:48 -0600 Subject: [PATCH] MAGETWO-32026: [GitHub] Invalid backend frontname During Installation #823 - Fixed the error based on CR feedback. --- .../Magento/Framework/App/DeploymentConfig/BackendConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/App/DeploymentConfig/BackendConfig.php b/lib/internal/Magento/Framework/App/DeploymentConfig/BackendConfig.php index 62ee7b81e34e8..1bfd48fd1f2f3 100644 --- a/lib/internal/Magento/Framework/App/DeploymentConfig/BackendConfig.php +++ b/lib/internal/Magento/Framework/App/DeploymentConfig/BackendConfig.php @@ -28,7 +28,7 @@ public function __construct(array $data) if (!isset($data[self::KEY_FRONTNAME])) { throw new \InvalidArgumentException("No backend frontname provided."); } - if ($data[self::KEY_FRONTNAME] === '') { + if (empty($data[self::KEY_FRONTNAME])) { throw new \InvalidArgumentException("Empty backend frontname provided."); } if (!preg_match('/^[a-zA-Z0-9_]+$/', $data[self::KEY_FRONTNAME])) {