|
|
@ -519,7 +519,7 @@ function store_forumcategory($values, $courseInfo = array(), $showMessage = true |
|
|
|
// Storing after edition. |
|
|
|
// Storing after edition. |
|
|
|
$params = [ |
|
|
|
$params = [ |
|
|
|
'cat_title' => $clean_cat_title, |
|
|
|
'cat_title' => $clean_cat_title, |
|
|
|
'cat_comment' => $values['forum_category_comment'], |
|
|
|
'cat_comment' => isset($values['forum_category_comment']) ? $values['forum_category_comment'] : '', |
|
|
|
]; |
|
|
|
]; |
|
|
|
Database::update( |
|
|
|
Database::update( |
|
|
|
$table_categories, |
|
|
|
$table_categories, |
|
|
@ -545,7 +545,7 @@ function store_forumcategory($values, $courseInfo = array(), $showMessage = true |
|
|
|
$params = [ |
|
|
|
$params = [ |
|
|
|
'c_id' => $course_id, |
|
|
|
'c_id' => $course_id, |
|
|
|
'cat_title' => $clean_cat_title, |
|
|
|
'cat_title' => $clean_cat_title, |
|
|
|
'cat_comment' => $values['forum_category_comment'], |
|
|
|
'cat_comment' => isset($values['forum_category_comment']) ? $values['forum_category_comment'] : '', |
|
|
|
'cat_order' => $new_max, |
|
|
|
'cat_order' => $new_max, |
|
|
|
'session_id' => $session_id, |
|
|
|
'session_id' => $session_id, |
|
|
|
]; |
|
|
|
]; |
|
|
|