fix for not set $_SERVER['DOCUMENT_ROOT'] if run by the async-service, eg. calendar alarms

This commit is contained in:
Ralf Becker 2006-03-03 13:44:43 +00:00
parent 6eff641297
commit 119fb13409

View File

@ -149,7 +149,7 @@
{
$len = strlen($docroot);
if ($docroot == substr($path,0,$len))
if ($docroot && $docroot == substr($path,0,$len))
{
$rest = substr($path,$len);