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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user