aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_calendar.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2009-11-30 20:41:11 +0000
committernikrou <nikrou@piwigo.org>2009-11-30 20:41:11 +0000
commitf7222bf601fa120a0fa2190cb98325780d75ff24 (patch)
tree418abf0dc0cf2b6723aa8e8db64a399ee923f071 /include/functions_calendar.inc.php
parent2f8800b35b51fb71d8d61b1f809b28a5097c5801 (diff)
Feature 1255 :
sql functions for calendar (interval, year, month, ...) git-svn-id: http://piwigo.org/svn/trunk@4398 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_calendar.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php
index 362c4cf14..9191bb157 100644
--- a/include/functions_calendar.inc.php
+++ b/include/functions_calendar.inc.php
@@ -258,7 +258,8 @@ WHERE id IN (' . implode(',',$page['items']) .')';
if ($must_show_list)
{
- $query = 'SELECT id';
+ $query = 'SELECT DISTINCT id '.get_extra_fields($conf['order_by']);
+ $query .= ','.$calendar->date_field;
$query .= $calendar->inner_sql.'
'.$calendar->get_date_where();
if ( isset($page['super_order_by']) )