Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / gl / inquiry / gl_account_inquiry.php
index 3f81e035e3d7dfce4d671f8c43fd5bf24bd3aeac..14147f6cf52da9e2cf0f1e891afc368389a4f32f 100644 (file)
@@ -68,7 +68,7 @@ function gl_inquiry_controls()
     start_table(TABLESTYLE_NOBORDER);
        start_row();
     gl_all_accounts_list_cells(_("Account:"), 'account', null, false, false, _("All Accounts"));
-       date_cells(_("from:"), 'TransFromDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+       date_cells(_("from:"), 'TransFromDate', '', null, -user_transaction_days());
        date_cells(_("to:"), 'TransToDate');
     end_row();
        end_table();