Changeset 4965


Ignore:
Timestamp:
02/26/10 13:00:45 (9 years ago)
Author:
plg
Message:

bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which
happens when date_creation comes from corrupted EXIF)

bug 859 fixed: at display time only. Piwigo still inserts wrong date in the
database, to be fixed later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/functions.inc.php

    r4508 r4965  
    564564  global $lang; 
    565565 
     566  if (strpos($date, '0') == 0) 
     567  { 
     568    return l10n('N/A'); 
     569  } 
     570 
    566571  $ymdhms = array(); 
    567572  $tok = strtok( $date, '- :'); 
Note: See TracChangeset for help on using the changeset viewer.