From 119fb13409689507943a90117986629d69b4bcf3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Mar 2006 13:44:43 +0000 Subject: [PATCH] fix for not set $_SERVER['DOCUMENT_ROOT'] if run by the async-service, eg. calendar alarms --- phpgwapi/inc/class.vfs_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);