$first_cols = array(_("Type"), "#", _("Date"));
if ($dim == 2)
$dim_cols = array(_("Dimension")." 1", _("Dimension")." 2");
-else if ($dim == 1)
+elseif ($dim == 1)
$dim_cols = array(_("Dimension"));
else
$dim_cols = array();
table_header($th);
$end = $_GET['date'];
$account = $_GET['act'];
-$begin = add_days($end, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+$begin = add_days($end, -user_transaction_days());
$result = get_gl_transactions($begin, $end, -1, $account, 0, 0, null);
$j = 0;
end_page(true);
-?>