Fix error when updating activity
This commit is contained in:
parent
299f9a9647
commit
fbd3e5274c
1
lib.php
1
lib.php
|
@ -18,6 +18,7 @@ function expcontent_update_instance($expcontent) {
|
||||||
|
|
||||||
$expcontent->timemodified = time();
|
$expcontent->timemodified = time();
|
||||||
$expcontent->id = $expcontent->instance;
|
$expcontent->id = $expcontent->instance;
|
||||||
|
$expcontent->introformat = FORMAT_MOODLE;
|
||||||
|
|
||||||
if (! $DB->update_record('expcontent', $expcontent)) {
|
if (! $DB->update_record('expcontent', $expcontent)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue