Skip to content

Commit

Permalink
修复带横线的控制器无法获取的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
breath-co2 committed Jul 29, 2013
1 parent bdd9f12 commit 1c82ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/core.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected static function find_controller($uri)
}
}

if (is_array($found['class']) && isset($found['class']))
if (is_array($found) && isset($found['class']))
{
$found['class'] = preg_replace('#[^a-zA-Z0-9_]#', '_', trim($found['class']));
}
Expand Down

0 comments on commit 1c82ff8

Please sign in to comment.