aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_cats.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-12-13 10:58:33 +0000
committerplegall <plg@piwigo.org>2012-12-13 10:58:33 +0000
commit3a7c66941854c842f342d8103fda32e70a275615 (patch)
tree4262dd31295130c0a826da3e54bf7a2943ab65e5 /include/category_cats.inc.php
parentea3e07c3261231030ec555ffc6ac2cd2b82ec8f0 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/category_cats.inc.php2
1 files changed, 1 insertions, 1 deletions
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);
}