Skip to content

Commit 307441c

Browse files
committed
Merge remote-tracking branch 'origin/1.11.x' into 1.11.x
2 parents e1c7879 + ac90824 commit 307441c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main/exercise/exercise.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function read($id, $parseQuestionList = true)
206206
$this->saveCorrectAnswers = $object->save_correct_answers;
207207
$this->randomByCat = $object->random_by_category;
208208
$this->text_when_finished = $object->text_when_finished;
209-
$this->text_when_finished_failure = $object->text_when_finished_failure;
209+
$this->text_when_finished_failure = isset($object->text_when_finished_failure) ? $object->text_when_finished_failure : null;
210210
$this->display_category_name = $object->display_category_name;
211211
$this->pass_percentage = $object->pass_percentage;
212212
$this->is_gradebook_locked = api_resource_is_locked_by_gradebook($id, LINK_EXERCISE);

main/work/work.lib.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,11 +2690,11 @@ function getAllWork(
26902690

26912691
$courseQueryToString = implode(' OR ', $courseQuery);
26922692

2693-
//try {
2694-
$compilatio = new Compilatio();
2695-
//} catch (Exception $e) {
2696-
// $compilatio = null;
2697-
//}
2693+
try {
2694+
$compilatio = new Compilatio();
2695+
} catch (Exception $e) {
2696+
$compilatio = null;
2697+
}
26982698

26992699
if ($getCount) {
27002700
if (empty($courseQuery)) {

0 commit comments

Comments
 (0)