aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_category.inc.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 51b990780..5dc9c6018 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -75,11 +75,7 @@ function get_user_plain_structure()
$infos = array( 'name','id','uc.date_last','nb_images','dir','id_uppercat',
'rank','site_id','nb_sub_categories','uppercats');
- $query = 'SELECT ';
- foreach ( $infos as $i => $info ) {
- if ( $i > 0 ) $query.= ',';
- $query.= $info;
- }
+ $query = 'SELECT '.implode( ',', $infos );
$query.= ' FROM '.PREFIX_TABLE.'categories AS c';
// $query.= ' ,'.PREFIX_TABLE.'user_category AS uc';
$query.= ' INNER JOIN '.PREFIX_TABLE.'user_category AS uc';