Download & Extend

Module broken due to object reference code error

Project:RoleAssign
Version:master
Component:Code
Category:bug report
Priority:critical
Assigned:TBarregren
Status:closed (fixed)

Issue Summary

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

#1

I developed the module for PHP5 and missed to test on PHP4 :*)

Thanks budda who pointed it out.

#2

Assigned to:Anonymous» TBarregren
Status:needs review» closed (fixed)