Skip to content

Commit ebe8694

Browse files
committed
1 parent caf9657 commit ebe8694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/exercise/TestCategory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function save($courseId = 0)
7474
if ($row['nb'] <= 0) {
7575
$params = [
7676
'c_id' => $courseId,
77-
'title' => $this->name,
78-
'description' => $this->description
77+
'title' => (string) $this->name,
78+
'description' => (string) $this->description
7979
];
8080
$newId = Database::insert($table, $params);
8181

0 commit comments

Comments
 (0)