From dcecbee7d0d503962812ba3ab641e429a6b6d673 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 27 Apr 2012 12:37:51 +0000 Subject: [PATCH] Compiler and co: fixed issue on the interpretation of the menus SVN:trunk[1974] --- setup/compiler.class.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index 288216249..f64cb40ab 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -305,7 +305,11 @@ EOF; */ protected function PathToPHP($sPath, $sModuleRelativeDir, $bIsUrl = false) { - if (substr($sPath, 0, 2) == '$$') + if ($sPath == '') + { + $sPHP = "''"; + } + elseif (substr($sPath, 0, 2) == '$$') { // Absolute $sPHP = "'".addslashes(substr($sPath, 2))."'";