Browse Source

Compiler and co: fixed issue on the interpretation of the menus

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1974 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 years ago
parent
commit
5b7f0000e3
1 changed files with 5 additions and 1 deletions
  1. 5 1
      setup/compiler.class.inc.php

+ 5 - 1
setup/compiler.class.inc.php

@@ -305,7 +305,11 @@ EOF;
 	 */ 
 	 */ 
 	protected function PathToPHP($sPath, $sModuleRelativeDir, $bIsUrl = false)
 	protected function PathToPHP($sPath, $sModuleRelativeDir, $bIsUrl = false)
 	{
 	{
-		if (substr($sPath, 0, 2) == '$$')
+		if ($sPath == '')
+		{
+			$sPHP = "''";
+		}
+		elseif (substr($sPath, 0, 2) == '$$')
 		{
 		{
 			// Absolute
 			// Absolute
 			$sPHP = "'".addslashes(substr($sPath, 2))."'";
 			$sPHP = "'".addslashes(substr($sPath, 2))."'";