Warning error in og_default_roles_og function

AlenaSystems - March 28, 2008 - 03:02
Project:OG Default Roles
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Josh Benner
Status:closed
Description

After submitting a new Group node, received the following Warning error message:

warning: Invalid argument supplied for foreach() in sites/all/modules/og_default_roles/og_default_roles.module on line 106.

#1

mckeen.greg - April 3, 2008 - 23:24

I get the same problem on my site. Have no idea why this is? I can help with extra information if someone that can help needs it.

#2

mckeen.greg - April 3, 2008 - 23:25

I get the same problem on my site. Have no idea why this is? I can help with extra information if someone that can help needs it.

#3

rhache - May 4, 2008 - 17:25

I can confirm the same error as well.

I should also point out that I use Drupal 5.7 and the 7.0 version of OG.

Rene

#4

Josh Benner - May 14, 2008 - 15:47
Assigned to:Anonymous» Josh Benner
Status:active» fixed

This is now fixed in HEAD. If you want to fix it yourself, simply add this line after line 165 in og_default_roles.module:

$grants[$nid] = array();

#5

Anonymous (not verified) - May 28, 2008 - 15:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.