Download & Extend

features.node.inc doesn't check for array from hook_node_info

Project:Features
Version:6.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:quickfix

Issue Summary

I found this because og_user_roles_node_info will return NULL if og_subgroups is not enabled. Features continues to use the result as if it was an array, which creates a PHP warning (or error). Patch below fixes it.

AttachmentSize
features.node_.inc_.patch837 bytes

Comments

#1

Status:needs review» fixed

Thank you. Committed: http://drupal.org/cvs?commit=274778

#2

Status:fixed» closed (fixed)

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

nobody click here