diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index a9dde8ba92..a50141f71a 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -149,7 +149,7 @@ { $len = strlen($docroot); - if ($docroot == substr($path,0,$len)) + if ($docroot && $docroot == substr($path,0,$len)) { $rest = substr($path,$len);