Browse Source

Fix php warning because of:

https://github.com/chamilo/chamilo-lms/commit/bd8fb004442e7116529273c30697651c48832653#diff-3282d807d4715f052f789e110365938f
Julio 5 years ago
parent
commit
770659bbad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/exercise/overview.php

+ 2 - 2
main/exercise/overview.php

@@ -148,10 +148,10 @@ $list['is_visible'] = $objExercise->is_visible(
 
 // Exercise is not visible remove the button
 if ($list['is_visible']['value'] == false) {
-    if ($is_allowed_to_edit) {
+    if ($isAllowedToEdit) {
         $message = get_lang('ThisItemIsInvisibleForStudentsButYouHaveAccessAsTeacher');
     } else {
-        $message = $visible_return['message'];
+        $message = $list['is_visible']['message'];
     }
 }