# HG changeset patch # User Franck Deroche # Date 1192892293 -7200 # Node ID 5bfffcb2624bccde05936f43bf9f9399d98913f2 # Parent 3adedf57dc770efea88054b5fc1595cab1bd7476 Clean-up diff -r 3adedf57dc77 -r 5bfffcb2624b index.php --- a/index.php Sat Oct 20 16:28:08 2007 +0200 +++ b/index.php Sat Oct 20 16:58:13 2007 +0200 @@ -5,8 +5,10 @@ $type = $_GET['type']; $year = $_GET['year']; $month = $_GET['month']; - $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; $prevYear = ($month == 1)?$year-1:$year; - $nextMonth = $month % 12 + 1; $nextYear = ($month == 12)?$year+1:$year; + $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; + $prevYear = ($month == 1)? $year-1 : $year; + $nextMonth = $month % 12 + 1; + $nextYear = ($month == 12) ? $year+1 : $year; $Data = new DataAccess; include("top.php"); $Data->Connect();