rsanchez/bn_edit_menu — pull request #1 by jannisg (2012-01-06 23:07:46+00:00)
Title: Fixes an error where $menu['content']['publish'] was not an array, thus breaking the foreach loop on L:144

If the site had no or just a single channel $menu['content']['publish'] is a string containing the URL rather than the required (by line 144) array for BN Edit Menu to work.

Adding an is_array($menu['content']['publish']) check prevents the error.

Now BN Edit Menu only applies itself to sites with 2 or more channels.