Follow-up r91770: only translate when possible

This commit is contained in:
Robin Pepermans 2011-07-09 12:54:42 +00:00
parent e9e0bf8cc1
commit 49df111ae3

View file

@ -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 );
}
/**