MDL-70750 mod_survey: Fix warning for undefined offset.

This commit is contained in:
Ilya Tregubov
2021-06-21 08:41:48 +02:00
parent 338b60f43b
commit 6ecfb59077
+1 -1
View File
@@ -307,7 +307,7 @@ class graph {
//print "$thisX, $thisY <br />";
if (($bar!='none') && (string)$thisY != 'none') {
if ($relatedset = $this->offset_relation[$set]) { // Moodle
if (isset($this->offset_relation[$set]) && $relatedset = $this->offset_relation[$set]) {
$yoffset = $this->calculated['y_plot'][$relatedset][$index]; // Moodle
} else { // Moodle
$yoffset = 0; // Moodle