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:23:07 +00:00
parent 3adaa7a695
commit 319f1ee907

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);