@@ 149-153 (lines=5) @@ | ||
146 | if (empty($lastyear)) { |
|
147 | $lastyear = $this_year; |
|
148 | } |
|
149 | if ($lastmonth == 0) { |
|
150 | $lastmonth = $this_month; |
|
151 | $months[$lastmonth]['string'] = $months_arr[$lastmonth]; |
|
152 | $months[$lastmonth]['number'] = $lastmonth; |
|
153 | } |
|
154 | if ($lastyear != $this_year) { |
|
155 | $years[$i]['number'] = $lastyear; |
|
156 | $years[$i]['months'] = $months; |
|
@@ 162-166 (lines=5) @@ | ||
159 | $lastyear = $this_year; |
|
160 | ++$i; |
|
161 | } |
|
162 | if ($lastmonth != $this_month) { |
|
163 | $lastmonth = $this_month; |
|
164 | $months[$lastmonth]['string'] = $months_arr[$lastmonth]; |
|
165 | $months[$lastmonth]['number'] = $lastmonth; |
|
166 | } |
|
167 | } |
|
168 | } |
|
169 | $years[$i]['number'] = $this_year; |