mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
adding 3 more fields to mod.html, and modified data_update_instance
This commit is contained in:
parent
d49490104a
commit
17e5f3fc9d
2 changed files with 70 additions and 1 deletions
|
@ -551,6 +551,10 @@ function data_update_instance($data) {
|
|||
|
||||
$data->id = $data->instance;
|
||||
|
||||
if (empty($data->ratings)) {
|
||||
$data->ratings = 0;
|
||||
}
|
||||
|
||||
$data->timemodified = time();
|
||||
|
||||
if (!empty($data->availablefromenable)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue