From f8d794bc93f3edbc4d2d184f9169280e3956ffe2 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 20 May 2011 13:42:57 +0000 Subject: [PATCH] Reduces the annoyance of bug #408 (dates not visible in the case log if PHP < 5.3) SVN:trunk[1271] --- core/ormcaselog.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/ormcaselog.class.inc.php b/core/ormcaselog.class.inc.php index 39a907567..ea1b6a62c 100644 --- a/core/ormcaselog.class.inc.php +++ b/core/ormcaselog.class.inc.php @@ -79,7 +79,10 @@ class ormCaseLog { $iPos += $this->m_aIndex[$index]['text_length']; $sEntry = '
'; + // Temporary workaround: PHP < 5.3 issues an irrelevant warning -see trac #408 + $iPrevLevel = error_reporting(E_ERROR); $sEntry .= sprintf(Dict::S('UI:CaseLog:Header_Date_UserName'), $this->m_aIndex[$index]['date']->format(Dict::S('UI:CaseLog:DateFormat')), $this->m_aIndex[$index]['user_name']); + error_reporting($iPrevLevel); $sEntry .= '
'; $sEntry .= '
'; $sEntry .= $sTextEntry;