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