[BUGFIX] Only throw EM Offline Exception when EM is offline
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Utility / Connection / TerUtility.php
index fd049f7..26f5118 100644 (file)
@@ -45,7 +45,7 @@ class TerUtility {
         * @return array T3X data
         */
        public function fetchExtension($extensionKey, $version, $expectedMd5, $mirrorUrl) {
-               if (!$this->configurationUtility->getCurrentConfiguration('extensionmanager')['offlineMode']['value']) {
+               if (!empty($this->configurationUtility->getCurrentConfiguration('extensionmanager')['offlineMode']['value'])) {
                        throw new ExtensionManagerException('Extension Manager is in offline mode. No TER connection available.', 1437078620);
                }
                $extensionPath = \TYPO3\CMS\Core\Utility\GeneralUtility::strtolower($extensionKey);