Browse files

Fixed memory limit overrun in backup config page. Why SELECT * FROM m…

…dl_course when all we need is id? :)
  • Loading branch information...
1 parent 9fe1f87 commit b52bf78003f73224ed18c53cd15f46534ec01270 martinlanghoff committed Mar 14, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/backup.php
View
2 admin/backup.php
@@ -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) {

0 comments on commit b52bf78

Please sign in to comment.