Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / gl / inquiry / tax_inquiry.php
index ec96716a267b12279ce09d921a63306ac21e582f..90ec7fe7d0efa255898764da897b7e2284e57f17 100644 (file)
@@ -58,7 +58,7 @@ function tax_inquiry_controls()
     start_table(TABLESTYLE_NOBORDER);
        start_row();
 
-       date_cells(_("from:"), 'TransFromDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
+       date_cells(_("from:"), 'TransFromDate', '', null, -user_transaction_days());
        date_cells(_("to:"), 'TransToDate');
        submit_cells('Show',_("Show"),'','', 'default');