Index: usage/includes/pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/usage/includes/pages.inc,v
retrieving revision 1.3
diff -u -p -r1.3 pages.inc
--- usage/includes/pages.inc	10 Aug 2009 21:02:08 -0000	1.3
+++ usage/includes/pages.inc	18 Nov 2009 18:29:01 -0000
@@ -308,7 +308,10 @@ function project_usage_project_page($nod
   // ...then fill it in with our data.
   $result = db_query("SELECT timestamp, tid, count FROM {project_usage_week_project} WHERE nid = %d", $node->nid);
   while ($row = db_fetch_object($result)) {
-    $project_rows[$row->timestamp][$row->tid]['data'] = $row->count;
+    // In some circumstances, we may have timestamps outside the range we care about in the result set.
+    if (isset($project_rows[$row->timestamp])) {
+      $project_rows[$row->timestamp][$row->tid]['data'] = $row->count;
+    }
   }
 
   // ...and add the weekly totals across all API versions
