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

SVN:trunk[1974]
This commit is contained in:
Romain Quetiez
2012-04-27 12:37:51 +00:00
parent dfc02ccb77
commit dcecbee7d0

View File

@@ -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))."'";