jmontoyaa 8 anni fa
parent
commit
b3d64722a9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      main/template/default/auth/courses_categories.php

+ 1 - 1
main/template/default/auth/courses_categories.php

@@ -316,7 +316,7 @@ function returnThumbnail($course)
 
     $html .= '<div class="image">';
     $html .= '<img class="img-responsive" src="'.$course_medium_image.'" alt="'.api_htmlentities($title).'"/>';
-    $categoryTitle = $course['category'];
+    $categoryTitle = isset($course['category']) ? $course['category'] : '';
     if (!empty($categoryTitle)) {
         $listCategory = CourseManager::getCategoriesList();
         $categoryTitle = $listCategory[$categoryTitle];