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/functions_category.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/functions_category.inc.php') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 43289ca01..f22e529dd 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -205,7 +205,7 @@ SELECT * FROM '.CATEGORIES_TABLE.' WHERE id IN ('.$cat['uppercats'].') ;'; - $names = hash_from_query($query, 'id'); + $names = query2array($query, 'id'); // category names must be in the same order than uppercats list $cat['upper_names'] = array(); @@ -302,7 +302,7 @@ function display_select_cat_wrapper($query, $blockname, $fullname = true) { - $categories = array_from_query($query); + $categories = query2array($query); usort($categories, 'global_rank_compare'); display_select_categories($categories, $selecteds, $blockname, $fullname); } @@ -362,7 +362,7 @@ SELECT id, permalink, 0 AS is_old FROM '.CATEGORIES_TABLE.' WHERE permalink IN ('.$in.') ;'; - $perma_hash = hash_from_query($query, 'permalink'); + $perma_hash = query2array($query, 'permalink'); if ( empty($perma_hash) ) return null; -- cgit v1.2.3