Line 467 of user.module:

function user_user($type, $edit, $user, $category = NULL) {

Should be:

function user_user($type, &$edit, &$user, $category = NULL) {

Without the references all sorts of bad things happen. In my case, saving any user caused them to receive all roles. The only way to revert this was to hack the database. =/

CommentFileSizeAuthor
#1 995550-missing_hook_user_refs.patch478 bytesgreg.harvey

Comments

greg.harvey’s picture

Status: Active » Needs review
StatusFileSize
new478 bytes

Patch attached.

greg.harvey’s picture

Priority: Critical » Normal
Status: Needs review » Closed (works as designed)

Correction, I've just realised this is because of another patch: #853064: Alter INSTALL.txt to be clear PHP 5.3 is not compatible with Drupal 5