Skip to content

Commit

Permalink
mnet: backup_general_info() now indicates whether it includes MNET_RE…
Browse files Browse the repository at this point in the history
…MOTEUSERS
  • Loading branch information
martinlanghoff committed Jan 16, 2007
1 parent 818c1b0 commit c0543ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backup/backuplib.php
Expand Up @@ -450,6 +450,15 @@ function backup_general_info ($bf,$preferences) {
} else {
$zipmethod = 'internal';
}
//Indicate if it includes external MNET users
$sql = "SELECT b.old_id
FROM {$CFG->prefix}backup_ids b
JOIN {$CFG->prefix}user u ON b.old_id=u.id
WHERE b.backup_code = '$preferences->backup_unique_code'
AND b.table_name = 'user' AND u.mnethostid != '{$CFG->mnet_localhost_id}'";
if (record_exists_sql($sql)) {
fwrite ($bf,full_tag("MNET_REMOTEUSERS",2,false,'true'));
}
fwrite ($bf,full_tag("ZIP_METHOD",2,false,$zipmethod));
//Te includes tag
fwrite ($bf,start_tag("DETAILS",2,true));
Expand Down

0 comments on commit c0543ba

Please sign in to comment.