aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-12-13 10:59:17 +0000
committerplegall <plg@piwigo.org>2012-12-13 10:59:17 +0000
commit4a93241dd19dd452d6c90f2dc45ae7a373c81901 (patch)
treefbb8103fc18d15b25eba56efcd13a0a35520b664
parent703465f7fcfb22e4a2e583618232091f918329bb (diff)
merge r19419 from branch 2.4 to trunk
bug 2806 fixed: only use the day to compare from and to, and not the time. git-svn-id: http://piwigo.org/svn/trunk@19420 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 256b9caa8..311713dac 100644
--- a/include/category_cats.inc.php
+++ b/include/category_cats.inc.php
@@ -355,7 +355,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);
}