aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-08-26 23:00:28 +0000
committerz0rglub <z0rglub@piwigo.org>2004-08-26 23:00:28 +0000
commitc414a9133eea12bf5ccfd8e08d5af0a5ff270cf0 (patch)
treea5a2751baa2a02522c6ade5e90332d529c2f67a3 /include/functions_category.inc.php
parent11c2e5805334a637a4e304c27d0fdcf709e24772 (diff)
possibility to choose the date field you want to use for calendar category
(date_available or date_creation). git-svn-id: http://piwigo.org/svn/trunk@497 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 1b075f70a..da3e5e31e 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -686,13 +686,11 @@ SELECT COUNT(DISTINCT(id)) AS nb_total_images
$page['title'] .= $page['calendar_year'];
$page['title'] .= ')';
}
+
+ $page['where'] = 'WHERE '.$conf['calendar_datefield'].' IS NOT NULL';
if (isset($forbidden))
{
- $page['where'] = 'WHERE '.$forbidden;
- }
- else
- {
- $page['where'] = 'WHERE 1=1';
+ $page['where'].= ' AND '.$forbidden;
}
}