From 95785ee22d9d9cc3798a752903f32e5ce0d67a53 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 7 Sep 2012 14:39:29 +0000 Subject: [PATCH] Stop watches - workaround for the triggers SVN:trunk[2168] --- core/ormstopwatch.class.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/ormstopwatch.class.inc.php b/core/ormstopwatch.class.inc.php index f7325c3b7..23d85b6eb 100644 --- a/core/ormstopwatch.class.inc.php +++ b/core/ormstopwatch.class.inc.php @@ -77,10 +77,16 @@ class ormStopWatch return false; - return true; } + /** + * Necessary for the triggers + */ + public function __toString() + { + return (string) $this->iTimeSpent; + } public function DefineThreshold($iPercent, $tDeadline = null, $bPassed = false, $bTriggered = false, $iOverrun = 0) {