From 2b81fbc4aa00ab4fcef794083c3f8e2d6bfe314e Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 13 Feb 2014 22:21:12 +0000 Subject: more query2array git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/calendar_base.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/calendar_base.class.php') diff --git a/include/calendar_base.class.php b/include/calendar_base.class.php index ac2d33ce2..f48fae1e3 100644 --- a/include/calendar_base.class.php +++ b/include/calendar_base.class.php @@ -246,7 +246,7 @@ $this->inner_sql. $this->get_date_where($level).' GROUP BY period;'; - $level_items = simple_hash_from_query($query, 'period', 'nb_images'); + $level_items = query2array($query, 'period', 'nb_images'); if ( count($level_items)==1 and count($page['chronology_date'])calendar_levels)-1) @@ -317,7 +317,7 @@ AND ' . $this->date_field . ' IS NOT NULL GROUP BY period'; $current = implode('-', $page['chronology_date'] ); - $upper_items = array_from_query( $query, 'period'); + $upper_items = query2array($query,null, 'period'); usort($upper_items, 'version_compare'); $upper_items_rank = array_flip($upper_items); -- cgit v1.2.3