diff --git a/mod/forum/classes/local/exporters/post.php b/mod/forum/classes/local/exporters/post.php index 6b361c5e895..6979bb7d8db 100644 --- a/mod/forum/classes/local/exporters/post.php +++ b/mod/forum/classes/local/exporters/post.php @@ -105,7 +105,11 @@ class post extends exporter { 'default' => null, 'null' => NULL_ALLOWED ], - 'timecreated' => ['type' => PARAM_INT], + 'timecreated' => [ + 'type' => PARAM_INT, + 'default' => null, + 'null' => NULL_ALLOWED + ], 'unread' => [ 'type' => PARAM_BOOL, 'optional' => true,