[BUGFIX] Allow importing of non-compressed t3d files again
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Classes / Import.php
index d1f0855..897ab75 100644 (file)
@@ -2060,11 +2060,12 @@ class Import extends ImportExport
             if ($initStrDat[1]) {
                 if ($this->compress) {
                     $datString = gzuncompress($datString);
-                    return $unserialize ? unserialize($datString) : $datString;
                 } else {
                     $this->error('Content read error: This file requires decompression, but this server does not offer gzcompress()/gzuncompress() functions.');
+                    return null;
                 }
             }
+            return $unserialize ? unserialize($datString) : $datString;
         } else {
             $this->error('MD5 check failed (' . $name . ')');
         }