diff options
author | plegall <plg@piwigo.org> | 2005-01-16 17:28:19 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-01-16 17:28:19 +0000 |
commit | c443c97891b0edbefc4c388e4228fe7b24ec579b (patch) | |
tree | 6899e444fb300cc2297388bc493037af73789c5a /include/functions_category.inc.php | |
parent | b9f05888cb46c632e66333561bd9c139144a51bf (diff) |
- the day of the week is not displayed when year is prior to 1970
git-svn-id: http://piwigo.org/svn/trunk@698 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 2e7ce2903..f66d8bded 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -647,11 +647,14 @@ SELECT COUNT(DISTINCT(id)) AS count $page['title'] .= ' ('; if (isset($page['calendar_day'])) { - $unixdate = mktime(0,0,0, - $page['calendar_month'], - $page['calendar_day'], - $page['calendar_year']); - $page['title'].= $lang['day'][date("w", $unixdate)]; + if ($page['calendar_year'] >= 1970) + { + $unixdate = mktime(0,0,0, + $page['calendar_month'], + $page['calendar_day'], + $page['calendar_year']); + $page['title'].= $lang['day'][date("w", $unixdate)]; + } $page['title'].= ' '.$page['calendar_day'].', '; } if (isset($page['calendar_month'])) |