From 319f1ee907d6fef721d146facf469265536f3853 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 19 Sep 2007 12:23:07 +0000 Subject: [PATCH] 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. --- setup/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index 538d89a22a..0b2b75ec3c 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -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);