Permalink
Browse files

Ensure only target groups_members are added to backup. MDL-12453 ; ba…

…ckported from HEAD
  • Loading branch information...
stronk7
stronk7 committed Mar 9, 2008
1 parent df5be4f commit 9ebd5c666df3ccad73b092db9a5a9cf939ba71dc
Showing with 8 additions and 3 deletions.
  1. +8 −3 backup/backuplib.php
@@ -1622,9 +1622,14 @@ function backup_groups_members_info($bf,$preferences,$groupid) {
$status = true;
//Get groups_members
$groups_members = groups_get_member_records($groupid);
//Get groups_members that are being included in backup
$groups_members = get_records_sql("SELECT gm.*
FROM {$CFG->prefix}groups_members gm,
{$CFG->prefix}backup_ids bi
WHERE gm.groupid = $groupid
AND bi.backup_code = $preferences->backup_unique_code
AND bi.table_name = 'user'");
//Pring groups_members header
if ($groups_members) {
//Pring groups_members header

0 comments on commit 9ebd5c6

Please sign in to comment.