Small Bugfix for the call of the setup-cli.php script. When checking the enviroment as command-line call DOCUMENT_ROOT is not set. The empty string

results in an error stating, that the path provided for tmp/file/backup is in DOC_ROOT. This is fixed now.
This commit is contained in:
Klaus Leithoff 2007-09-19 12:26:02 +00:00
parent 1079197f7d
commit dbb52a6231

View File

@ -83,7 +83,7 @@
{
$len = strlen($docroot);
if ($docroot == substr($dir,0,$len))
if ($docroot == substr($dir,0,$len) && $len>0)
{
$rest = substr($dir,$len);