Skip to content
Snippets Groups Projects
Commit d89a64e6 authored by comete-upn's avatar comete-upn
Browse files

Checking that some variables exist before using it.

parent 2c9cb038
No related branches found
No related tags found
1 merge request!1Resolve "Bobologie 1"
...@@ -408,7 +408,7 @@ class format_iena_renderer extends format_topics_renderer{ ...@@ -408,7 +408,7 @@ class format_iena_renderer extends format_topics_renderer{
} }
$titre = $nameSection[$i]; $titre = $nameSection[$i];
$sectionIntro = $introSection[$i]; $sectionIntro = isset($introSection[$i]) ? $introSection[$i] : '';
//If section is hidden continue //If section is hidden continue
if ($titre == null && !(has_capability('moodle/course:update', $context = context_course::instance($COURSE->id), $USER->id))) { if ($titre == null && !(has_capability('moodle/course:update', $context = context_course::instance($COURSE->id), $USER->id))) {
$i++; $i++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment