aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-22 08:18:08 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-22 08:18:08 +0000
commit53479d08c3e10bbb8eb14c0659c3a8141318617a (patch)
tree5f5237697456c5f0c4af37d88d3957945f31cfb4
parentea4bf112f99edd98092f2bbfbeaf11f7460b3433 (diff)
updating code presentation
git-svn-id: http://piwigo.org/svn/trunk@32 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/stats.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/admin/stats.php b/admin/stats.php
index 66cdec2de..61cecaa17 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -40,14 +40,9 @@ $tpl = array( 'stats_last_days','date','login',
templatize_array( $tpl, 'lang', $sub );
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
//--------------------------------------------------- number of days to display
-if ( isset( $_GET['last_days'] ) )
-{
- define( MAX_DAYS, $_GET['last_days'] );
-}
-else
-{
- define( MAX_DAYS, 0 );
-}
+if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
+else define( MAX_DAYS, 0 );
+
foreach ( $conf['last_days'] as $option ) {
$vtp->addSession( $sub, 'last_day_option' );
$vtp->setVar( $sub, 'last_day_option.option', $option );