diff --git a/assets/vue/components/assignments/TeacherAssignmentList.vue b/assets/vue/components/assignments/TeacherAssignmentList.vue index c8662e0b58..2f8d1dc615 100644 --- a/assets/vue/components/assignments/TeacherAssignmentList.vue +++ b/assets/vue/components/assignments/TeacherAssignmentList.vue @@ -26,7 +26,7 @@ > diff --git a/public/main/exercise/exercise.class.php b/public/main/exercise/exercise.class.php index babfa74b98..8baceabae5 100644 --- a/public/main/exercise/exercise.class.php +++ b/public/main/exercise/exercise.class.php @@ -1847,7 +1847,7 @@ class Exercise $exerciseId, $this->sessionId ); - if (false !== $linkInfo) { + if (!empty($linkInfo)) { GradebookUtils::remove_resource_from_course_gradebook($linkInfo['id']); }