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