Download & Extend

Boost error after creating node

Project:Boost
Version:6.x-1.18
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I created a node with Boost turned on and got this warning upon saving:

Warning: array_unique(): The argument should be an array in boost_get_menu_structure() (line 806 of /hsphere/local/home/triprod/triprod.se/annat/ubercartmall/sites/all/modules/boost/boost.module).

The line comes from the function boost_get_menu_structure and looks like this:

$structure = array_unique($structure);

Maybe it's enough to make a check that $structure is an array?

Comments

#1

I solved it in this way:
if(is_array($structure)) $structure = array_unique($structure);

No problems since then.

#2

Status:active» needs review