From c96097529e49943eddba78d70e23e38c0eac494d Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 29 Nov 2009 12:35:19 +0000 Subject: Feature_1255 : - single quotes in queries - start using $conf['dblayer'] git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_calendar.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/functions_calendar.inc.php') diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php index 74c366f8c..362c4cf14 100644 --- a/include/functions_calendar.inc.php +++ b/include/functions_calendar.inc.php @@ -258,7 +258,7 @@ WHERE id IN (' . implode(',',$page['items']) .')'; if ($must_show_list) { - $query = 'SELECT DISTINCT(id)'; + $query = 'SELECT id'; $query .= $calendar->inner_sql.' '.$calendar->get_date_where(); if ( isset($page['super_order_by']) ) @@ -284,9 +284,8 @@ WHERE id IN (' . implode(',',$page['items']) .')'; $query .= ' '.$order_by; } - $page['items'] = array_from_query($query, 'id'); + $page['items'] = array_from_query($query, 'id'); } pwg_debug('end initialize_calendar'); } - ?> \ No newline at end of file -- cgit v1.2.3