From 85b82bf87bd351b3733571ebc7b75636aaa74b15 Mon Sep 17 00:00:00 2001 From: Lillem4n Date: Sat, 12 Nov 2011 16:06:46 +0100 Subject: [PATCH] Wages page went mad if no payouts were registered in the system, that is fixed now --- classes/controller/admin/wages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {