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
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

TBarregren - September 22, 2006 - 19:22

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

Thanks budda who pointed it out.

#2

TBarregren - September 22, 2006 - 19:23
Assigned to:Anonymous» TBarregren
Status:needs review» closed
 
 

Drupal is a registered trademark of Dries Buytaert.