? .project
Index: dropbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dropbox/dropbox.module,v
retrieving revision 1.10
diff -u -p -r1.10 dropbox.module
--- dropbox.module	31 Oct 2009 03:11:39 -0000	1.10
+++ dropbox.module	15 Feb 2010 22:14:26 -0000
@@ -27,9 +27,13 @@ function dropbox_menu() {
  * flood control they don't get the old form.
  */
 function dropbox_boot() {
-  $arg = explode('/', $_REQUEST['q']);
-  if ($arg[0] == 'user' && isset($arg[1]) && is_numeric($arg[1]) && isset($arg[2]) && $arg[2] == 'dropbox') {
-    $GLOBALS['conf']['cache'] = FALSE;
+  // We can't use arg() as it hasn't been set up this early in the bootstrap
+  // process.
+  if (isset($_REQUEST['q'])) {
+    $arg = explode('/', $_REQUEST['q']);
+    if (count($arg) >= 3 && $arg[0] == 'user' && is_numeric($arg[1]) && $arg[2] == 'dropbox') {
+      $GLOBALS['conf']['cache'] = FALSE;
+    }
   }
 }
 
