aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-21 19:47:14 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-21 19:47:14 +0000
commit2fa9252446a78d349ca2f50096430591cc5e012f (patch)
treebbf5cd282c8b9424b05d970c70e30610ea8b0e4f /include/user.inc.php
parent55a0a61aaf58a02e2ac5d2c489f81b1be4730cd8 (diff)
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@26 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index 8efd8219f..f950b3a1e 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -20,22 +20,14 @@
// Example :
// status --> $user['status']
$infos = array( 'id', 'username', 'mail_address', 'nb_image_line',
- 'nb_line_page', 'status', 'theme', 'language', 'maxwidth',
+ 'nb_line_page', 'status', 'language', 'maxwidth',
'maxheight', 'expand', 'show_nb_comments', 'short_period',
'long_period', 'template' );
-$query_user = 'SELECT';
-for ( $i = 0; $i < sizeof( $infos ); $i++ )
-{
- if ( $i > 0 )
- {
- $query_user.= ',';
- }
- else
- {
- $query_user.= ' ';
- }
- $query_user.= $infos[$i];
+$query_user = 'SELECT ';
+foreach ( $infos as $i => $info ) {
+ if ( $i > 0 ) $query_user.= ',';
+ $query_user.= $info;
}
$query_user.= ' FROM '.PREFIX_TABLE.'users';
$query_done = false;