--- includes/bootstrap.inc.orig	2006-04-25 21:03:53.000000000 -0400
+++ includes/bootstrap.inc	2006-04-25 20:56:30.000000000 -0400
@@ -145,7 +145,7 @@
     $parts = parse_url($base_url);
     $base_path = isset($parts['path']) ? $parts['path'] . '/' : '/';
     // Build $base_root (everything until first slash after "scheme://").
-    $base_root = substr($base_url, 0, strlen($base_url) - strlen($parts['path']));
+    $base_root = substr($base_url, 0, strlen($base_url) - (isset($parts['path']) ? strlen($parts['path']) : 0));
   }
   else {
     // Create base URL
