Correctly update cached message flags in ALL places when they are changed by the...
[squirrelmail.git] / functions / date.php
index 7ed2be7b6cfeeaba025a9e3643fa4a18f07a3ffb..d50aa872d0a772a290d2448823deb7e5e42c7b07 100644 (file)
@@ -305,14 +305,15 @@ function date_intl( $date_format, $stamp ) {
  * and taking localization into accout.
  *
  * @param int stamp the timestamp
+ * @param string fallback string to use when stamp not valid
  * @return string the long date string
  */
-function getLongDateString( $stamp ) {
+function getLongDateString( $stamp, $fallback = '' ) {
 
     global $hour_format;
 
     if ($stamp == -1) {
-        return '';
+        return $fallback;
     }
 
     if ( $hour_format == SMPREF_TIME_12HR ) {