Page 1 of 1

S2MEMBER_CURRENT_USER_FIELDS not including custom fields

PostPosted: July 13th, 2010, 5:20 pm
by davidwebster48
I am using s2member v3.1.2, and I think I've found a small bug. The S2MEMBER_CURRENT_USER_FIELDS constant does not contain my custom fields.

I have found the cause, in s2member/includes/functions/constants.inc.php, line 211. It uses $result where it should use $r. When I changed that the problem was fixed.

I hope this helps someone.

cheers
David

Re: S2MEMBER_CURRENT_USER_FIELDS not including custom fields

PostPosted: July 14th, 2010, 4:30 pm
by Jason Caldwell
Hi David. Thank you VERY much for reporting this.

I'm logging this for an immediate fix before the next release.
s2Member v3.1.3+ will correct the two references to $result->, changing them to $r->.