aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/config.inc.php')
-rw-r--r--include/config.inc.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/config.inc.php b/include/config.inc.php
index e067c7905..d7db7fbab 100644
--- a/include/config.inc.php
+++ b/include/config.inc.php
@@ -67,11 +67,7 @@ $infos = array( 'prefix_thumbnail', 'webmaster', 'mail_webmaster', 'access',
'upload_maxheight_thumbnail','log','comments_validation',
'comments_forall','authorize_cookies','mail_notification' );
-$query = 'SELECT ';
-foreach ( $infos as $i => $info ) {
- if ( $i > 0 ) $query.= ',';
- $query.= $info;
-}
+$query = 'SELECT '.implode( ',', $infos );
$query.= ' FROM '.PREFIX_TABLE.'config;';
$row = mysql_fetch_array( mysql_query( $query ) );