From 847d88bb4caad69d7b1179dc1d67a50d0d180fb2 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 28 Apr 2017 11:58:14 +0800 Subject: [PATCH] MDL-58573 mod_assign: Whitespace fix --- mod/assign/db/upgrade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/assign/db/upgrade.php b/mod/assign/db/upgrade.php index e22b19d444c..5afc8889b68 100644 --- a/mod/assign/db/upgrade.php +++ b/mod/assign/db/upgrade.php @@ -299,9 +299,9 @@ function xmldb_assign_upgrade($oldversion) { if ($oldversion < 2017042800) { // Update query to set the grading due date one week after the due date. // Only assign instances with grading due date not set and with a due date of not older than 3 weeks will be updated. - $sql = "UPDATE {assign} - SET gradingduedate = duedate + :weeksecs - WHERE gradingduedate = 0 + $sql = "UPDATE {assign} + SET gradingduedate = duedate + :weeksecs + WHERE gradingduedate = 0 AND duedate > :timelimit"; // Calculate the time limit, which is 3 weeks before the current date.