I'm getting a missing argument error with the CVS version
warning: Missing argument 4 for userposts_user() in /home/blah/modules/userposts/userposts.module on line 26.

Posts show up, however.

silverwing

Comments

grohk’s picture

Component: User interface » Code
StatusFileSize
new576 bytes

Based on the changes to the Album, Automember, and Buddylist modules to fix the same problem, I think the userpost_user() function needs the following change on line 26 to fix the missing argument:

function userposts_user($op, &$edit, &$user, $category) {

becomes this:

function userposts_user($op, &$edit, &$user, $category = NULL) {

Patch is attached.

silverwing’s picture

Thank you. Works fine now.
david

baudolino’s picture

StatusFileSize
new817 bytes

From reading the documentation, it seems that the fourth argument should be $category = FALSE. Here's an updated patch. Incidentally, this makes the module compatible with Drupal 4.6, so I believe it can be tagged as such.

Bèr Kessels’s picture

committed, thanks!

Anonymous’s picture