diff --git a/classes/teststrategy/feedbackgenerator/graphicalsummary.php b/classes/teststrategy/feedbackgenerator/graphicalsummary.php index c7dd12227..828a1ea75 100644 --- a/classes/teststrategy/feedbackgenerator/graphicalsummary.php +++ b/classes/teststrategy/feedbackgenerator/graphicalsummary.php @@ -484,7 +484,7 @@ private function render_attemptresultstackchart(array $attemptsbytimerange, int foreach ($attemptsbytimerange as $timestamp => $attempts) { $labels[] = (string)$timestamp; foreach ($attempts as $attempt) { - $color = personabilities::get_color_for_personability($quizsettings, $attempt, $catscaleid); + $color = personabilities::get_color_for_personability((array)$quizsettings, $attempt, $catscaleid); if (!isset($series[$timestamp][$color])) { $series[$timestamp][$color] = 1;