From 94d98ee5463c7c0e5f1c88b310a32802eea9d891 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 14 Sep 2009 11:57:13 +0000 Subject: [PATCH] MenuLink created correctly now. --- e107_handlers/plugin_class.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index a9f21efb2..bf3be6d06 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $ -| $Revision: 1.83 $ -| $Date: 2009-09-14 11:27:45 $ +| $Revision: 1.84 $ +| $Date: 2009-09-14 11:57:13 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -1059,11 +1059,7 @@ class e107plugin //main menu items if(isset($plug_vars['menuLink'])) { - //Ensure it is the right sort of array for use with foreach() - if(count($plug_vars['menuLink']) <= 1) - { - $plug_vars['menuLink'] = array($plug_vars['menuLink']); - } + foreach($plug_vars['menuLink'] as $link) { $attrib = $link['@attributes'];