From 7fb058683ff7e38fa49d59697a5db374933b83cb Mon Sep 17 00:00:00 2001 From: Magdalena Holczik Date: Wed, 10 Jan 2024 16:53:31 +0100 Subject: [PATCH] fix convertion of param --- classes/teststrategy/feedbackgenerator/graphicalsummary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;