From: Robin Pepermans Date: Sat, 9 Jul 2011 12:54:42 +0000 (+0000) Subject: Follow-up r91770: only translate when possible X-Git-Tag: 1.31.0-rc.0~28962 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=49df111ae3f4b17a1d86ebf688df41316a204151;p=lhc%2Fweb%2Fwiklou.git Follow-up r91770: only translate when possible --- diff --git a/languages/Language.php b/languages/Language.php index 4ed2465183..55a2ee792c 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3018,7 +3018,7 @@ class Language { } } // If no duration is given, but a timestamp, display that - return $this->timeanddate( $str ); + return ( strtotime( $str ) ? $this->timeanddate( strtotime( $str ) ) : $str ); } /**