@@ 145-149 (lines=5) @@ | ||
142 | if (empty($lastyear)) { |
|
143 | $lastyear = $this_year; |
|
144 | } |
|
145 | if ($lastmonth == 0) { |
|
146 | $lastmonth = $this_month; |
|
147 | $months[$lastmonth]['string'] = $months_arr[$lastmonth]; |
|
148 | $months[$lastmonth]['number'] = $lastmonth; |
|
149 | } |
|
150 | if ($lastyear != $this_year) { |
|
151 | $years[$i]['number'] = $lastyear; |
|
152 | $years[$i]['months'] = $months; |
|
@@ 158-162 (lines=5) @@ | ||
155 | $lastyear = $this_year; |
|
156 | ++$i; |
|
157 | } |
|
158 | if ($lastmonth != $this_month) { |
|
159 | $lastmonth = $this_month; |
|
160 | $months[$lastmonth]['string'] = $months_arr[$lastmonth]; |
|
161 | $months[$lastmonth]['number'] = $lastmonth; |
|
162 | } |
|
163 | } |
|
164 | } |
|
165 | $years[$i]['number'] = $this_year; |