diff --git a/Core/InternalModule.php b/Core/InternalModule.php index 3318c20..20c5f12 100644 --- a/Core/InternalModule.php +++ b/Core/InternalModule.php @@ -281,9 +281,10 @@ public function checkExtendedClasses() * we don't need to check for filesystem directory - we only use namespaces in version 2.0 */ if ($this->isMetadataVersionGreaterEqual('2.0')) { - if (!isset($aResult[ $sClassName ][ $sModuleName ]) && strpos($sModuleName, $moduleNameSpace) === 0) { + if ($moduleNameSpace && !isset($aResult[$sClassName][$sModuleName]) && strpos($sModuleName, + $moduleNameSpace) === 0) { $this->stateFine = false; - $aResult[ $sClassName ][ $sModuleName ] = -1; + $aResult[$sClassName][$sModuleName] = -1; } } else { if (!isset($aResult[ $sClassName ][ $sModuleName ]) && strpos($sModuleName, $sModulePath . '/') === 0) { diff --git a/README.md b/README.md index e26032f..2377adf 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ composer require oxid-community/moduleinternals ![OXID_moduleinternals](screenshot.png) ## Changelog +* 2018-12-12 1.5.2 avoid php warning if module namespace can not be found * 2018-11-23 1.5.1 avoid error when fixing deactive module that has controllers * 2018-11-23 1.5.0 do not scan deactivated modules * 2018-11-23 1.4.3 fix error (modullist not shown, if oxid console is not installed) diff --git a/metadata.php b/metadata.php index 26fa0c1..29c3b37 100644 --- a/metadata.php +++ b/metadata.php @@ -49,7 +49,7 @@ Komplette Übersicht: '.$sLinkAndText, ], 'thumbnail' => 'module_internals.png', - 'version' => '1.5.1', + 'version' => '1.5.2', 'author' => 'OXID Community', 'url' => 'https://github.com/OXIDprojects/oxid-module-internals', 'email' => '',