Patch to fix cvs:/backup/restorelib.php - function endElementUsers
We were getting "Trying to get property of non-object" warnings here,
" case "ROLE":
//We've finalized a role, get it
$this->info->tempuser->roles[$this->info->temprole->type] = $this->info->temprole;
It turned out that the backup produces elements ROLES_ASSIGNMENTS, ROLES_OVERRIDES - extra S on 'role' not matching the DB schema. Restorelib meanwhile has both ROLE_ASSIGNMENTS and ROLES_ASSIGMENTS etc.!! The patch makes restore match backup.
(OU Bugzilla Bug 2532)