Permalink
Browse files

Merge branch 'MDL-33788b-22' of git://github.com/srynot4sale/moodle i…

…nto MOODLE_22_STABLE
  • Loading branch information...
2 parents 9a7c3d5 + c4c0b5a commit 9f55156eb484e52710479b19eb94616947ee1394 Sam Hemelryk committed Jul 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/completion/cron.php
View
@@ -382,10 +382,11 @@ function completion_cron_completions() {
SET
reaggregate = 0
WHERE
- reaggregate < {$timestarted}
+ reaggregate < :timestarted
+ AND reaggregate > 0
";
- $DB->execute($sql);
+ $DB->execute($sql, array('timestarted' => $timestarted));
}
/**

0 comments on commit 9f55156

Please sign in to comment.