mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 10:28:32 +03:00
Fix bug with undefined "$start" variable in StatisticsController
This commit is contained in:
parent
2da623dfb3
commit
24c50487d2
@ -181,9 +181,12 @@ class StatisticsController extends AbstractController
|
||||
$year = $curr['year'];
|
||||
}
|
||||
|
||||
$start = mktime(0, 0, 0, $month, 1, $year);
|
||||
$end = mktime(0, 0, 0, $month, date('t', $start), $year) + 24 * 60 * 60;
|
||||
|
||||
return array(
|
||||
'start' => mktime(0, 0, 0, $month, 1, $year),
|
||||
'end' => mktime(0, 0, 0, $month, date('t', $start), $year) + 24 * 60 * 60,
|
||||
'start' => $start,
|
||||
'end' => $end,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user