Module broken due to object reference code error
budda - September 22, 2006 - 15:39
| Project: | RoleAssign |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | TBarregren |
| Status: | closed |
Jump to:
Description
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.

#1
I developed the module for PHP5 and missed to test on PHP4 :*)
Thanks budda who pointed it out.
#2