This commit is contained in:
Simon Sessingø
2016-11-27 01:07:11 +01:00
parent f5b03e106c
commit 74351e0330
6 changed files with 13 additions and 14 deletions
+1 -2
View File
@@ -47,7 +47,7 @@ abstract class Route implements IRoute
protected function loadClass($name)
{
if (!class_exists($name)) {
if (class_exists($name) === false) {
throw new NotFoundHttpException(sprintf('Class %s does not exist', $name), 404);
}
@@ -528,7 +528,6 @@ abstract class Route implements IRoute
* If this is the first time setting parameters we store them so we
* later can organize the array, in case somebody tried to sort the array.
*/
if(count($parameters) > 0 && count($this->originalParameters) === 0) {
$this->originalParameters = $parameters;
}