From 1a93629a166d63384f1a73ae20140cdc0c311aeb Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 26 Oct 2009 09:50:00 +0000 Subject: [PATCH] small bug fixes --- e107_admin/includes/infopanel.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/e107_admin/includes/infopanel.php b/e107_admin/includes/infopanel.php index 31ea76dbc..194c951bf 100644 --- a/e107_admin/includes/infopanel.php +++ b/e107_admin/includes/infopanel.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/includes/infopanel.php,v $ - | $Revision: 1.13 $ - | $Date: 2009-10-22 23:43:15 $ + | $Revision: 1.14 $ + | $Date: 2009-10-26 09:50:00 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -273,12 +273,15 @@ function render_infopanel_menu_options() { while ($row = e107::getDb()->db_Fetch()) { - $label = str_replace("_menu","",$row['menu_name']); - $path_to_menu = $row['menu_path'].$row['menu_name']; - $checked = ($settings && in_array($path_to_menu, $settings)) ? true : false; - $text .= "\n
"; - $text .= $frm->checkbox_label($label, "e-mymenus[]",$path_to_menu, $checked); - $text .= "
"; + if(!is_numeric($row['menu_path'])) + { + $label = str_replace("_menu","",$row['menu_name']); + $path_to_menu = $row['menu_path'].$row['menu_name']; + $checked = ($settings && in_array($path_to_menu, $settings)) ? true : false; + $text .= "\n
"; + $text .= $frm->checkbox_label($label, "e-mymenus[]",$path_to_menu, $checked); + $text .= "
"; + } } } return $text;