Merge branch 'MDL-70750-master' of git://github.com/ilyatregubov/moodle

This commit is contained in:
Sara Arjona 2021-06-22 10:20:57 +02:00
commit 002f3e6cbf

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