Merge branch 'MDL-70863-master' of git://github.com/jleyva/moodle

This commit is contained in:
Jun Pataleta 2021-04-29 15:04:11 +08:00
commit 0e904ad5db

View File

@ -105,8 +105,16 @@ class post extends exporter {
'default' => null,
'null' => NULL_ALLOWED
],
'timecreated' => ['type' => PARAM_INT],
'timemodified' => ['type' => PARAM_INT],
'timecreated' => [
'type' => PARAM_INT,
'default' => null,
'null' => NULL_ALLOWED
],
'timemodified' => [
'type' => PARAM_INT,
'default' => null,
'null' => NULL_ALLOWED
],
'unread' => [
'type' => PARAM_BOOL,
'optional' => true,