aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/oer
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-15 15:39:09 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-24 11:11:45 +0000
commit4aa2263709aed90f4a7d5e99fd8eb0a0a9ac3225 (patch)
treee417487a7eed0529bfde2b644d4eee149915fc66 /app/controllers/oer
parentb12e93045465c2e825e15ff52d0c268026f9b99d (diff)
Apply 13 suggestion(s) to 4 file(s)tic-00853
Diffstat (limited to 'app/controllers/oer')
-rw-r--r--app/controllers/oer/mymaterial.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/oer/mymaterial.php b/app/controllers/oer/mymaterial.php
index b3617b2..2d5b93c 100644
--- a/app/controllers/oer/mymaterial.php
+++ b/app/controllers/oer/mymaterial.php
@@ -148,9 +148,13 @@ class Oer_MymaterialController extends AuthenticatedController
PageLayout::postSuccess(_('Lernmaterial erfolgreich gespeichert.'));
if (Request::get('redirect_url')) {
- if (Request::get('redirect_url') == 'files') {
- $this->redirect(URLHelper::getURL('dispatch.php/course/files/index/'
- . Request::get('dir') . '?cid=' . Request::get('cid')));
+ if (Request::get('redirect_url') === 'files') {
+ $this->redirect(
+ URLHelper::getURL(
+ 'dispatch.php/course/files/index/' . Request::get('dir'),
+ ['cid' => Request::get('cid')]
+ )
+ );
} else {
$this->redirect(URLHelper::getURL(Request::get('redirect_url'), [
'material_id' => $material->getId(),