diff --git a/classes/controller/admin/wages.php b/classes/controller/admin/wages.php index 1f235b9..4d86d80 100644 --- a/classes/controller/admin/wages.php +++ b/classes/controller/admin/wages.php @@ -12,8 +12,8 @@ public function before() public function action_index() { // Period-stuff (Needs to be before $_POST-handling) - $current_year = date('Y', time()); - $current_month = date('m', time()); + $year = $start_year = $current_year = date('Y', time()); + $month = $start_month = $current_month = date('m', time()); foreach (Transactions::get(array('description' => 'Salary payout')) as $transaction) {