|
@@ -761,15 +761,13 @@ function store_forum($values, $courseInfo = array(), $returnId = false)
|
|
|
'forum_of_group'=> isset($values['group_forum']) ? $values['group_forum'] : null,
|
|
|
'forum_group_public_private'=> isset($values['public_private_group_forum_group']['public_private_group_forum']) ? $values['public_private_group_forum_group']['public_private_group_forum'] : null,
|
|
|
'moderated'=> isset($values['moderated']['moderated']) ? 1 : 0,
|
|
|
- 'start_time' => isset($values['start_time']) ? $values['start_time'] : null,
|
|
|
- 'end_time' => isset($values['end_time']) ? $values['end_time'] : null,
|
|
|
+ 'start_time' => isset($values['start_time']) ? api_get_utc_datetime($values['start_time']) : null,
|
|
|
+ 'end_time' => isset($values['end_time']) ? api_get_utc_datetime($values['end_time']) : null,
|
|
|
'forum_order'=> isset($new_max) ? $new_max : null,
|
|
|
'session_id'=> $session_id,
|
|
|
'lp_id' => isset($values['lp_id']) ? intval($values['lp_id']) : 0,
|
|
|
'locked' => 0,
|
|
|
- 'forum_id' => 0,
|
|
|
- 'start_time' => null,
|
|
|
- 'end_time' => null
|
|
|
+ 'forum_id' => 0
|
|
|
];
|
|
|
|
|
|
$last_id = Database::insert($table_forums, $params);
|