Invalid argument supplied for foreach - Role exempt

Gus24 - May 14, 2009 - 15:43
Project:User Points Contributed modules
Version:6.x-1.x-dev
Component:Code: userpoints_role_exempt
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi. I get this error when I try to use Role Exempt:

Invalid argument supplied for foreach() in file modules/userpoints_contrib/userpoints_role_exempt/userpoints_role_exempt.module in string 66.

66 string is: foreach($account->roles as $rid => $name) {

I use 6.6 Drupal and Userpoints 6.x-1.x-dev

Will be greateful for any suggestions.

 
 

Drupal is a registered trademark of Dries Buytaert.