Type error
Date Wednesday, January 12, 2005 - 19:17
User chx
Location /cvs/drupal/?q=user/2/edit
Message array_keys(): The first argument should be an array in /var/www/cvs/drupal/modules/user.module on line 1048.
Hostname 127.0.0.1

CommentFileSizeAuthor
user_delete_0.patch875 byteschx

Comments

dries’s picture

I can't reproduce this problem.

budda’s picture

Problem is fixed by the patch here. Had no more problems since.

Error was re-produced when trying to delete the same user account a number of times by hitting the 'delete' form button.

budda’s picture

I also note that you can hit the 'delete' button as much as you want and the account will not be deleted. I see that you are required to first mark the account status to "block". Actually giving user feedback to say this would be handy.

Currently clicking the 'delete' button just refreshes the user form.

Maybe some javascript could be used to disable the 'delete' button until the status == 0 (blocked) ? Definitely increase usability then.

Is this a related bug or a new issue?

dries’s picture

buddy: can you reproduce this problem with CVS HEAD or with Drupal 4.5.x?

dries’s picture

I still can't reproduce this.