aboutsummaryrefslogtreecommitdiffstats
path: root/include/calendar_base.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-02-13 22:21:12 +0000
committerrvelices <rv-github@modusoptimus.com>2014-02-13 22:21:12 +0000
commit2b81fbc4aa00ab4fcef794083c3f8e2d6bfe314e (patch)
tree08dae87951f3b196063d30fbae5b1fb12c441c87 /include/calendar_base.class.php
parentd0733822cebce4c1314ee3e70e4e5ce84df98640 (diff)
more query2array
git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/calendar_base.class.php')
-rw-r--r--include/calendar_base.class.php4
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);