Skip to content

Commit

Permalink
40270: Administration -> Delete trash -> Delete Surveys => error: urv…
Browse files Browse the repository at this point in the history
…eyCategories::addCategory(): Argument #1 () must be o
  • Loading branch information
alex40724 committed Apr 23, 2024
1 parent 88bcf81 commit a7f40c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit a7f40c8

Please sign in to comment.