From ead675c1f384263e34344335b9d28a25b294c66c Mon Sep 17 00:00:00 2001 From: Mark Sharp Date: Wed, 24 Sep 2025 17:37:39 +0100 Subject: [PATCH] if block with data is not used --- classes/question/rate.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/classes/question/rate.php b/classes/question/rate.php index 8e0117da6..e838957bd 100644 --- a/classes/question/rate.php +++ b/classes/question/rate.php @@ -210,9 +210,6 @@ protected function question_survey_display($response, $descendantsdata, $blankqu if ($blankquestionnaire) { $disabled = ' disabled="disabled"'; } - if (!empty($data) && ( !isset($data->{'q'.$this->id}) || !is_array($data->{'q'.$this->id}) ) ) { - $data->{'q'.$this->id} = []; - } // Check if rate question has one line only to display full width columns of choices. $nocontent = false;