1
Hi:
In Profile 1.51, as shipped with XOOPS 2.3.1, I'm getting a blank page when trying to view any user's profile as anonymous user (permissions were OK prior to the update from 2.3.0 to 2.3.1).
The debug info states this:
Quote:
Fatal error: Call to a member function isAdmin() on a non-object in ..../modules/profile/userinfo.php on line 126
Line 126 in userinfo.php looks like this:
if (!$xoopsUser->isAdmin()) {
It works when registered, but throws the above mentioned error if not loggen in. Changing it to, for example,
!$xoopsUserIsAdmin prevents the error, but anonymous users can then see all fields in the profile.
Regards: Colossus