Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / reporting / rep202.php
index 61303541b7c148788ce5fc1626c524e1498db6d0..c61c2aa5dd9ba290d8df939f8a7f69622895e764 100644 (file)
@@ -254,7 +254,7 @@ function print_aged_supplier_analysis()
                $pg->type      = $graphics;
                $pg->skin      = $SysPrefs->graph_skin;
                $pg->built_in  = false;
-               $pg->latin_notation = ($SysPrefs->decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
+               $pg->latin_notation = ($SysPrefs->decseps[user_dec_sep()] != ".");
                $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;