Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / reporting / rep707.php
index bdf8c3ba8290652b16fa3c3bef526205037d3668..a0373b52e05751e39b53c1f725ccd6fc974a2329 100644 (file)
@@ -329,7 +329,7 @@ function print_profit_and_loss_statement()
                $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;