Skip to content

Commit

Permalink
fix error message using console command fix:states
Browse files Browse the repository at this point in the history
when fixing a deactivate modules that has controllers see #37
  • Loading branch information
keywan-ghadami-oxid committed Dec 12, 2018
1 parent 556ef4b commit c8cccfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Core/InternalModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down

0 comments on commit c8cccfe

Please sign in to comment.