Closed (fixed)
Project:
RoleAssign
Version:
master
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
22 Sep 2006 at 15:39 UTC
Updated:
22 Sep 2006 at 19:23 UTC
PHP object error on line 106. Module doesn't work, can't even install because of it.
Quick fix:
// Get roles already assigned to the user
// [TODO: Is there a more robust and elegant way?]
$user = user_load(array('uid' => arg(1)));
$assigned_roles = $user->roles;
Sorry no patch.
Comments
Comment #1
TBarregren commentedI developed the module for PHP5 and missed to test on PHP4 :*)
Thanks budda who pointed it out.
Comment #2
TBarregren commented