mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
towards db layer 2.0
This commit is contained in:
parent
a547c180f6
commit
0990f7aa99
1 changed files with 1 additions and 1 deletions
|
@ -747,7 +747,7 @@
|
|||
site_files_check_backup($course->id,$preferences->backup_unique_code);
|
||||
|
||||
//Role assignments
|
||||
$roles = get_records('role', '', '', 'sortorder');
|
||||
$roles = $DB->get_records('role', null, 'sortorder');
|
||||
foreach ($roles as $role) {
|
||||
$preferences->backuproleassignments[$role->id] = $role;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue