|
@@ -47,9 +47,9 @@ abstract class Request
|
|
|
$this->host = IS_CLI ? '' : $_SERVER['HTTP_HOST'];
|
|
|
$params = (array)$this->url->getParams();
|
|
|
if(count($params) > 0) $this->params = array_merge($this->params, $params);
|
|
|
- $routeInfo = $this->url->getPathArgs();
|
|
|
+ $routeInfo = (array)$this->url->getPathArgs();
|
|
|
$controller = $this->defaultController();
|
|
|
- $action = $this->defaultAction();
|
|
|
+ $action = $this->defaultAction();
|
|
|
if(count($routeInfo) > 1)
|
|
|
{
|
|
|
$action = array_pop($routeInfo);
|