I was getting several error messages from different modules, including buddylist, when a user logs out or when a user's page is viewed that look like this:
Warning: Missing argument 4 for buddylist_user() in /home/code0/domains/code0range.net/public_html/modules/buddylist/buddylist.module on line 82
I thought that it was related to this bug in user.module:
http://drupal.org/cvs?commit=14038
But that did not fix the problem. Based on the changes to the Album and Automember modules to fix the same problem, I think the buddylist_user() function needs the following change on line 82 to fix the missing argument:
function buddylist_user($type, &$edit, &$thisuser, $category) {
became this:
function buddylist_user($type, &$edit, &$thisuser, $category = NULL) {
Patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| buddylist_user_missing_arg.patch | 415 bytes | grohk |
Comments
Comment #1
walkah commentedapplied to HEAD - thanks :)
Comment #2
(not verified) commented