Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit e6fbcb4

Browse files
committed
Updated to 1.0.6 version
1 parent 759e5de commit e6fbcb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private function _doAction($action, $state) {
327327

328328
$Launcher = $that->instance('Launcher', 'controller');
329329

330-
if (is_object($Launcher)) {
330+
if (is_object($Launcher) && method_exists($Launcher, $action)) {
331331

332332
call_user_func([$Launcher, $action]);
333333
}
@@ -348,9 +348,9 @@ private function _doAction($action, $state) {
348348
*
349349
* @return string → module state
350350
*/
351-
public static function remove($moduleName = null, $deleteAll = true) {
351+
public static function remove($moduleName, $deleteAll = true) {
352352

353-
self::$id = ($moduleName) ? $moduleName : self::$id;
353+
self::$id = $moduleName;
354354

355355
$that = self::getInstance();
356356

0 commit comments

Comments
 (0)