aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/oer/mymaterial.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/oer/mymaterial.php')
-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(),