Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

course completion: MDL-2631 Fix rare mark_completed bug

  • Loading branch information...
commit 3c63deb9a0a00fb4867e482c4aed8ab044778e34 1 parent 70f25cc
@srynot4sale srynot4sale authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/completion/completion_completion.php
View
5 lib/completion/completion_completion.php
@@ -232,6 +232,11 @@ private function _save() {
$this->reaggregate = 0;
}
+ // Make sure timestarted is not null
+ if (!$this->timestarted) {
+ $this->timestarted = 0;
+ }
+
$this->insert();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.