Skip to content

Commit

Permalink
merge r4965 from branch 2.0 to trunk
Browse files Browse the repository at this point in the history
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.


git-svn-id: http://piwigo.org/svn/trunk@4966 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 26, 2010
1 parent c952f5f commit 0e45412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/functions.inc.php
Expand Up @@ -516,6 +516,11 @@ function format_date($date, $show_time = false)
{
global $lang;

if (strpos($date, '0') == 0)
{
return l10n('N/A');
}

$ymdhms = array();
$tok = strtok( $date, '- :');
while ($tok !== false)
Expand Down

0 comments on commit 0e45412

Please sign in to comment.