Closed (fixed)
Project:
OG User Roles
Version:
6.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2009 at 17:34 UTC
Updated:
12 Jul 2009 at 18:30 UTC
warning: array_filter() [function.array-filter]: The first argument should be an array in C:\xampp\htdocs\vhosts\m29office\www\sites\all\modules\contributed\og_user_roles\og_user_roles.module on line 69.
Line 69 is:
$roles = array_filter(variable_get("og_user_roles_roles_{$node->type}", NULL));
I think it should be:
$roles = array_filter(variable_get("og_user_roles_roles_{$node->type}", array()));
If I can make a patch I will, but my time is limited at work right now.
Comments
Comment #1
sunThanks for reporting and reviewing! Committed a fix.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.