aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/shared/contacts.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /app/controllers/shared/contacts.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'app/controllers/shared/contacts.php')
-rw-r--r--app/controllers/shared/contacts.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/shared/contacts.php b/app/controllers/shared/contacts.php
index 98670f4..820d2ab 100644
--- a/app/controllers/shared/contacts.php
+++ b/app/controllers/shared/contacts.php
@@ -114,7 +114,7 @@ class Shared_ContactsController extends MVVController
if ($this->contact_id) {
$contact_range = MvvContactRange::findOneBySQL('contact_id=?', [$this->contact_id]);
if (!$contact_range) {
- throw new Trails_Exception(404);
+ throw new Trails\Exception(404);
}
$this->relations = $contact_range->getRelations($this->filter);
$this->origin = 'index';
@@ -155,7 +155,7 @@ class Shared_ContactsController extends MVVController
{
$this->contact_range = MvvContactRange::findOneBySQL('contact_id = ?', [$contact_id]);
if (!$this->contact_range) {
- throw new Trails_Exception(404);
+ throw new Trails\Exception(404);
}
$this->relations = $this->contact_range->getRelations($this->filter);
@@ -725,7 +725,7 @@ class Shared_ContactsController extends MVVController
$this->mvvcontact_id = $user_id;
$this->selected_sem_end = $this->filter['end_sem.ende'];
- $this->selected_inst = $this->filter['mvv_studiengang.institut_id'];
+ $this->selected_inst = $this->filter['mvv_studiengang.institut_id'] ?? null;
if (Request::submitted('store')) {
$selected = Request::getArray('ranges');
@@ -871,7 +871,7 @@ class Shared_ContactsController extends MVVController
));
$filter = [
'mvv_modul.stat' => $stat,
- 'mvv_modul_inst.institut_id' => $this->filter['mvv_modul_inst.institut_id'],
+ 'mvv_modul_inst.institut_id' => $this->filter['mvv_modul_inst.institut_id'] ?? '',
'start_sem.beginn' => $this->filter['start_sem.beginn'],
'end_sem.ende' => $this->filter['end_sem.ende']
];