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

TBarregren’s picture

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

Thanks budda who pointed it out.

TBarregren’s picture

Assigned: Unassigned » TBarregren
Status: Needs review » Closed (fixed)