We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caf9657 commit ebe8694Copy full SHA for ebe8694
main/exercise/TestCategory.php
@@ -74,8 +74,8 @@ public function save($courseId = 0)
74
if ($row['nb'] <= 0) {
75
$params = [
76
'c_id' => $courseId,
77
- 'title' => $this->name,
78
- 'description' => $this->description
+ 'title' => (string) $this->name,
+ 'description' => (string) $this->description
79
];
80
$newId = Database::insert($table, $params);
81
0 commit comments