diff options
Diffstat (limited to 'include/calendar_base.class.php')
-rw-r--r-- | include/calendar_base.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'])<count($this->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); |