Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
course completion: MDL-2631 Fix rare mark_completed bug
[moodle.git]
/
lib
/
completion
/
completion_completion.php
diff --git
a/lib/completion/completion_completion.php
b/lib/completion/completion_completion.php
index
2be4780
..
6737789
100644
(file)
--- a/
lib/completion/completion_completion.php
+++ b/
lib/completion/completion_completion.php
@@
-232,6
+232,11
@@
class completion_completion extends data_object {
$this->reaggregate = 0;
}
$this->reaggregate = 0;
}
+ // Make sure timestarted is not null
+ if (!$this->timestarted) {
+ $this->timestarted = 0;
+ }
+
$this->insert();
}
}
$this->insert();
}
}