fix User::getReturnUrl() after #2501

This commit is contained in:
Ряднов Андрей
2014-03-19 11:20:40 +03:00
parent 1773ae5334
commit aa4e6ec039

View File

@@ -324,9 +324,7 @@ class User extends Component
$url = Yii::$app->getSession()->get($this->returnUrlParam, $defaultUrl);
if (is_array($url)) {
if (isset($url[0])) {
$route = array_shift($url);
return Yii::$app->getUrlManager()->createUrl($route, $url);
return Yii::$app->getUrlManager()->createUrl($url);
} else {
$url = null;
}