more query2array

git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2014-02-13 22:21:12 +00:00
parent d0733822ce
commit 2b81fbc4aa
6 changed files with 15 additions and 39 deletions
+2 -2
View File
@@ -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);