diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-01-22 22:47:20 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-01-22 22:47:20 +0000 |
commit | c2035bc574e89e2129610b4e3757c1a8802bdf68 (patch) | |
tree | 96a6330abd566042cbb25cc4b7ddbbae8506e197 | |
parent | 316a3dca3eaeac79de850bce0bdae16415fd00f2 (diff) |
code refactoring (really minor)
git-svn-id: http://piwigo.org/svn/branches/release-1_3@313 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/functions_category.inc.php | 6 |
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'; |