diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:21:12 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:21:12 +0000 |
commit | 2b81fbc4aa00ab4fcef794083c3f8e2d6bfe314e (patch) | |
tree | 08dae87951f3b196063d30fbae5b1fb12c441c87 /include/functions_category.inc.php | |
parent | d0733822cebce4c1314ee3e70e4e5ce84df98640 (diff) |
more query2array
git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; |