From bdfa735e1c9c3a8ec1cdab42f99f93a2083cca2e Mon Sep 17 00:00:00 2001
From: Neil Drumm <drumm@3064.no-reply.drupal.org>
Date: Wed, 6 Sep 2006 06:43:03 +0000
Subject: [PATCH] #47535 by Wesley Tanaka and nickl. Fix a PHP notice with
 timers.

---
 includes/bootstrap.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index fe36c53b6a42..424e0b07fa4b 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -60,7 +60,10 @@ function timer_read($name) {
   $stop = (float)$usec + (float)$sec;
   $diff = round(($stop - $timers[$name]['start']) * 1000, 2);
 
-  return $timers[$name]['time'] + $diff;
+  if (isset($timers[$name]['time'])) {
+    $diff += $timers[$name]['time'];
+  }
+  return $diff;
 }
 
 /**
-- 
GitLab