Skip to content

Commit

Permalink
backuplib: MDL-16945 (merge from 1.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Oct 22, 2008
1 parent faf7f2e commit be27180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backup/backuplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1374,11 +1374,11 @@ function backup_user_info ($bf,$preferences) {
fwrite ($bf,end_tag("ROLES",4,true));

//Check if we have custom profile fields to backup
if ($cpfields = $DB->get_records_sql("SELECT uif.shortname, uif.datatype, uid.data
if ($cpfields = $DB->get_records_sql("SELECT uif.shortname, uif.datatype, uidata.data
FROM {user_info_field} uif,
{user_info_data} uid
WHERE uif.id = uid.fieldid
AND uid.userid = ?", array($user->id))) {
{user_info_data} uidata
WHERE uif.id = uidata.fieldid
AND uidata.userid = ?", array($user->id))) {
//Start USER_CUSTOM_PROFILE_FIELDS tag
fwrite ($bf,start_tag("USER_CUSTOM_PROFILE_FIELDS",4,true));
//Write custom profile fields
Expand Down

0 comments on commit be27180

Please sign in to comment.