Fixed memory limit overrun in backup config page. Why SELECT * FROM mdl_course when all we need is id? :)

This commit is contained in:
martinlanghoff
2005-03-14 02:06:24 +00:00
parent 9fe1f87bbe
commit b52bf78003
+1 -1
View File
@@ -77,7 +77,7 @@
}
if ($status) {
//get courses
if ($courses = get_records("course")) {
if ($courses = get_records('course', '', '', '', 'id,shortname')) {
//For each course, we check (insert, update) the backup_course table
//with needed data
foreach ($courses as $course) {