Skip to content

Commit

Permalink
fixed a router bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lhs168 committed May 7, 2018
1 parent 230904a commit 0766757
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Fasim/Core/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ public function init() {
break;
}
}
if ($matched) {
if (isset($matched['module'])) {
$this->defaultModule = $matched['module'];
if (isset($value['controller'])) {
$this->defaultController = $matched['controller'];
if (isset($value['action'])) {
$this->defaultAction = $matched['action'];
}
}

if ($matched) {
if (isset($matched['module'])) {
$this->defaultModule = $matched['module'];
if (isset($value['controller'])) {
$this->defaultController = $matched['controller'];
if (isset($value['action'])) {
$this->defaultAction = $matched['action'];
}
}
}
Expand Down

0 comments on commit 0766757

Please sign in to comment.