Changeset 904 for trunk/admin/stats.php


Ignore:
Timestamp:
Oct 19, 2005, 11:59:14 PM (19 years ago)
Author:
plg
Message:
  • warning fixed: $_GETyear and $_GETmonth are not always defined to create navigation bar in admin/stats. $_GETday does not exist
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/stats.php

    r894 r904  
    274274
    275275  //display nav bar
    276   $url = $_SERVER['PHP_SELF'].'?page=stats&year='.$_GET['year'];
    277   $url .= '&month='.$_GET['month'].'&day='.$_GET['day'];
    278   $page['navigation_bar'] =
    279   create_navigation_bar( $url, $page['nb_logs'],$page['start'],$conf['nb_logs_page'], 'admin' );
    280 $template->assign_block_vars('navigation',
    281     array('NAV_BAR' => $page['navigation_bar'])
    282     );
     276$url = $_SERVER['PHP_SELF'].'?page=stats';
     277$url.= isset($_GET['year']) ? '&year='.$_GET['year'] : '';
     278$url.= isset($_GET['month']) ? '&month='.$_GET['month'] : '';
     279
     280$page['navigation_bar'] =
     281create_navigation_bar(
     282  $url,
     283  $page['nb_logs'],
     284  $page['start'],
     285  $conf['nb_logs_page'],
     286  'admin'
     287  );
     288
     289$template->assign_block_vars(
     290  'navigation',
     291  array(
     292    'NAV_BAR' => $page['navigation_bar']
     293    )
     294  );
    283295
    284296//----------------------------------------------------------- sending html code
Note: See TracChangeset for help on using the changeset viewer.