aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/resources
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-09-27 11:50:34 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-09-27 11:50:34 +0000
commit5f78b312c8ad82f91148d6bfe79c614651736161 (patch)
tree43b1092303c8fd99a1cf1c1493da567bf8119eed /app/controllers/resources
parent48ea0fdedeaa4b75e113a521d63682fed3881c4e (diff)
fix errors found through static code analysis, fixes #4562
Closes #4562 Merge request studip/studip!3375
Diffstat (limited to 'app/controllers/resources')
-rw-r--r--app/controllers/resources/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/resources/ajax.php b/app/controllers/resources/ajax.php
index cffd878..ebe0e10 100644
--- a/app/controllers/resources/ajax.php
+++ b/app/controllers/resources/ajax.php
@@ -778,7 +778,7 @@ class Resources_AjaxController extends AuthenticatedController
$semester = \Semester::findByTimestamp($timestamp);
if (!$semester) {
$this->notFound('No semester found for given timestamp');
- throw new RecordNotFoundException();
+ return;
}
$timestamp = strtotime('today', $timestamp);