[BUGFIX] EM: Handle missing dependencies in emconf
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Utility / ExtensionModelUtility.php
index 341a195..72ce4be 100644 (file)
@@ -66,8 +66,11 @@ class ExtensionModelUtility {
         * @return \SplObjectStorage
         */
        public function convertDependenciesToObjects($dependencies) {
-               $unserializedDependencies = unserialize($dependencies);
                $dependenciesObject = new \SplObjectStorage();
+               $unserializedDependencies = unserialize($dependencies);
+               if (!is_array($unserializedDependencies)) {
+                       return $dependenciesObject;
+               }
                foreach ($unserializedDependencies as $dependencyType => $dependencyValues) {
                        // Dependencies might be given as empty string, e.g. conflicts => ''
                        if (!is_array($dependencyValues)) {