From e70162e8bb4d200658ff3ee8d9e300a6ecaf84ba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 Feb 2012 13:42:14 +0100 Subject: [PATCH] Fix: Exclude index from menu list --- htdocs/core/class/html.formadmin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php index 23baf771908..d3bb6289864 100644 --- a/htdocs/core/class/html.formadmin.class.php +++ b/htdocs/core/class/html.formadmin.class.php @@ -149,7 +149,7 @@ class FormAdmin { while (($file = readdir($handle))!==false) { - if (is_file($dir."/".$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS') + if (is_file($dir."/".$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' && substr($file, 0, 5) != 'index') { if (preg_match('/lib\.php$/i',$file)) continue; // We exclude library files $filelib=preg_replace('/\.php$/i','',$file);