aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/module
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-02 08:09:14 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-02 08:09:14 +0000
commit1e9f2810615f7b375e3133a9f8fbdbc767513978 (patch)
treeca60815c430c6d3378a96596b0eacef2f964d175 /app/controllers/module
parentf71ee9305d044b982ae4d65e5c29671dc8b40d9e (diff)
prevent php8-warnings, refs #1733
Merge request studip/studip!1128
Diffstat (limited to 'app/controllers/module')
-rw-r--r--app/controllers/module/module.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/module/module.php b/app/controllers/module/module.php
index 74415ba..996ec76 100644
--- a/app/controllers/module/module.php
+++ b/app/controllers/module/module.php
@@ -854,7 +854,7 @@ class Module_ModuleController extends MVVController
$this->modulteil_id = $this->modulteil->getId();
$this->search_lvgruppe($this->modulteil->getId());
if (Request::isXhr()) {
- $this->render_template('module/module/modulteil_lvg', null);
+ $this->render_template('module/module/modulteil_lvg');
} else {
$this->modul = Modul::get($this->modulteil->modul_id);
$this->modul_id = $this->modul->getId();
@@ -1037,6 +1037,7 @@ class Module_ModuleController extends MVVController
public function details_action($modul_id, $modulteil_id = null)
{
+ $this->institut_id = null;
$this->modul = Modul::get($modul_id);
$this->modul_id = $this->modul->isNew() ? null : $this->modul->getId();
if ($modulteil_id) {