From 3a7c66941854c842f342d8103fda32e70a275615 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 13 Dec 2012 10:58:33 +0000 Subject: bug 2806 fixed: only use the day to compare from and to, and not the time. git-svn-id: http://piwigo.org/svn/branches/2.4@19419 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_cats.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index c8b728e5a..28866b507 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -354,7 +354,7 @@ if (count($categories) > 0) { $info = ''; - if ($from == $to) + if (date('Y-m-d', strtotime($from)) == date('Y-m-d', strtotime($to))) { $info = format_date($from); } -- cgit v1.2.3