diff --git a/Modules/SurveyQuestionPool/Questions/class.SurveyMatrixQuestion.php b/Modules/SurveyQuestionPool/Questions/class.SurveyMatrixQuestion.php index d9db848fc6cb..528de70d8da9 100755 --- a/Modules/SurveyQuestionPool/Questions/class.SurveyMatrixQuestion.php +++ b/Modules/SurveyQuestionPool/Questions/class.SurveyMatrixQuestion.php @@ -262,7 +262,7 @@ public function loadFromDb(int $question_id): void ); if ($result->numRows() > 0) { while ($data = $ilDB->fetchAssoc($result)) { - $this->columns->addCategory($data["title"], (int) $data["other"], (int) $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); + $this->columns->addCategory((string) $data["title"], (int) $data["other"], (int) $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); } } diff --git a/Modules/SurveyQuestionPool/Questions/class.SurveyMultipleChoiceQuestion.php b/Modules/SurveyQuestionPool/Questions/class.SurveyMultipleChoiceQuestion.php index 7a13d54a54a6..458cbda0d7dd 100755 --- a/Modules/SurveyQuestionPool/Questions/class.SurveyMultipleChoiceQuestion.php +++ b/Modules/SurveyQuestionPool/Questions/class.SurveyMultipleChoiceQuestion.php @@ -95,7 +95,7 @@ public function loadFromDb(int $question_id): void ); if ($result->numRows() > 0) { while ($data = $ilDB->fetchAssoc($result)) { - $this->categories->addCategory($data["title"], $data["other"], $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); + $this->categories->addCategory((string) $data["title"], (int) $data["other"], (int) $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); } } } diff --git a/Modules/SurveyQuestionPool/Questions/class.SurveySingleChoiceQuestion.php b/Modules/SurveyQuestionPool/Questions/class.SurveySingleChoiceQuestion.php index dcbd8a26a316..d792a2481da9 100755 --- a/Modules/SurveyQuestionPool/Questions/class.SurveySingleChoiceQuestion.php +++ b/Modules/SurveyQuestionPool/Questions/class.SurveySingleChoiceQuestion.php @@ -96,7 +96,7 @@ public function loadFromDb(int $question_id): void ); if ($result->numRows() > 0) { while ($data = $ilDB->fetchAssoc($result)) { - $this->categories->addCategory($data["title"], $data["other"], $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); + $this->categories->addCategory((string) $data["title"], (int) $data["other"], (int) $data["neutral"], null, ($data['scale']) ?: ($data['sequence'] + 1)); } } }