Internal: Fix undefined variable - refs BT#21604

pull/5698/head
christianbeeznst 1 year ago
parent 0b6c599bd4
commit 3c0a54524d
  1. 2
      assets/vue/components/assignments/TeacherAssignmentList.vue
  2. 2
      public/main/exercise/exercise.class.php

@ -26,7 +26,7 @@
>
<template #body="slotProps">
<div class="flex items-center">
<BaseIcon v-if="getSessionId(slotProps.data)" icon="star" size="small" class="text-yellow-500 mr-2" />
<BaseIcon v-if="getSessionId(slotProps.data)" icon="session-star" size="small" class="mr-2" />
{{ slotProps.data.title }}
</div>
</template>

@ -1847,7 +1847,7 @@ class Exercise
$exerciseId,
$this->sessionId
);
if (false !== $linkInfo) {
if (!empty($linkInfo)) {
GradebookUtils::remove_resource_from_course_gradebook($linkInfo['id']);
}

Loading…
Cancel
Save