From c797a2bcb47ea13d70e0c1b27b3bb34d654b78dd Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Fri, 8 Oct 2021 15:11:23 +0200
Subject: [PATCH] fix redirect, re #1

---
 app/controllers/studip_controller.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/controllers/studip_controller.php b/app/controllers/studip_controller.php
index 812ea4a9b7c..0e340d6d722 100644
--- a/app/controllers/studip_controller.php
+++ b/app/controllers/studip_controller.php
@@ -321,7 +321,9 @@ abstract class StudipController extends Trails_Controller
      */
     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);
     }
 
-- 
GitLab