MDL-16106 report - fix old double-column trick causing problems in backup logs. Merge...
authorEloy Lafuente <stronk7@moodle.org>
Wed, 8 Sep 2010 16:56:42 +0000 (16:56 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 8 Sep 2010 16:56:42 +0000 (16:56 +0000)
admin/report/backups/index.php

index 5a425d1..104d3d8 100644 (file)
@@ -93,7 +93,7 @@
         echo $OUTPUT->box_start();
 
     /// First, me get all the distinct backups for that course in backup_log
-        $executions = $DB->get_records_sql("SELECT DISTINCT laststarttime,laststarttime
+        $executions = $DB->get_records_sql("SELECT DISTINCT laststarttime
                                               FROM {backup_log}
                                              WHERE courseid = ? AND backuptype = ?
                                           ORDER BY laststarttime DESC", array($courseid,'scheduledbackup'));