aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-22 22:47:20 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-22 22:47:20 +0000
commitc2035bc574e89e2129610b4e3757c1a8802bdf68 (patch)
tree96a6330abd566042cbb25cc4b7ddbbae8506e197
parent316a3dca3eaeac79de850bce0bdae16415fd00f2 (diff)
code refactoring (really minor)
git-svn-id: http://piwigo.org/svn/branches/release-1_3@313 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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';