Merged from MOODLE_14_STABLE - 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:07:52 +00:00
parent 6e0c7c2175
commit 64169fe6a0
+1 -1
View File
@@ -73,7 +73,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) {