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) {