Skip to content

Commit

Permalink
Wages page went mad if no payouts were registered in the system, that…
Browse files Browse the repository at this point in the history
… is fixed now
  • Loading branch information
lillem4n committed Nov 12, 2011
1 parent 79f64b1 commit 85b82bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/controller/admin/wages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 85b82bf

Please sign in to comment.