Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / gl / view / accrual_trans.php
index 525c1b2e1309b8033eca0553690d9b3620d28b84..ab5d08f671abd880c79ff5f7642714748102fd6e 100644 (file)
@@ -64,7 +64,7 @@ $th = array_merge($first_cols, $dim_cols, $remaining_cols);
 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;