summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/baseconfig/getconfig.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/exams/baseconfig/getconfig.inc.php')
-rw-r--r--modules-available/exams/baseconfig/getconfig.inc.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules-available/exams/baseconfig/getconfig.inc.php b/modules-available/exams/baseconfig/getconfig.inc.php
index 2776d3a8..6a9bf03a 100644
--- a/modules-available/exams/baseconfig/getconfig.inc.php
+++ b/modules-available/exams/baseconfig/getconfig.inc.php
@@ -2,10 +2,12 @@
if (isset($configVars["SLX_LOCATIONS"])) {
$locationIds = explode(' ', $configVars["SLX_LOCATIONS"]);
- if (Exams::isInExamMode($locationIds, $lectureId)) {
- $configVars['SLX_EXAM'] = 'yes';
- if (strlen($lectureId) > 0) {
- $configVars['SLX_EXAM_START'] = $lectureId;
- }
+} else {
+ $locationIds = array();
+}
+if (Exams::isInExamMode($locationIds, $lectureId)) {
+ $configVars['SLX_EXAM'] = 'yes';
+ if (strlen($lectureId) > 0) {
+ $configVars['SLX_EXAM_START'] = $lectureId;
}
}