Posted by corey.aufang on June 23, 2009 at 5:34pm
Jump to:
| Project: | OG User Roles |
| Version: | 6.x-4.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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:
<?php
$roles = array_filter(variable_get("og_user_roles_roles_{$node->type}", NULL));
?>I think it should be:
<?php
$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
#1
Thanks 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.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.