Fix warning

1.10.x
jmontoya 9 years ago
parent d69c769144
commit a729d6b2f6
  1. 4
      main/forum/forumfunction.inc.php

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

Loading…
Cancel
Save