Skip to content
Snippets Groups Projects
Commit c797a2bc authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix redirect, re #1

parent 4504bbd3
No related branches found
No related tags found
No related merge requests found
...@@ -321,7 +321,9 @@ abstract class StudipController extends Trails_Controller ...@@ -321,7 +321,9 @@ abstract class StudipController extends Trails_Controller
*/ */
public function redirect($to) public function redirect($to)
{ {
$to = $this->url_for(...func_get_args()); if (func_num_args() > 1) {
$to = $this->url_for(...func_get_args());
}
return parent::redirect($to); return parent::redirect($to);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment