X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fcompany_db.inc;h=c1197dcce8bb05cd5753114aaf5196b0468c6533;hb=ef70e6c138561051def03df7e4264391dc61ea73;hp=64f44bc3f3992873966cbf4f9235127cc5e1f340;hpb=d3d448011070f36166a37c2b7ab146a4e160b66b;p=fa-stable.git diff --git a/admin/db/company_db.inc b/admin/db/company_db.inc index 64f44bc3..c1197dcc 100644 --- a/admin/db/company_db.inc +++ b/admin/db/company_db.inc @@ -37,7 +37,7 @@ function get_company_pref($prefs = null, $tbpref = null) static $cached; // retrieve values from db once a request. Some values can't be cached between requests // to ensure prefs integrity for all usrs (e.g. gl_close_date). - if (!$cached) { // cached preferences + if (!$cached || !isset($_SESSION['SysPrefs'])) { // cached preferences $_SESSION['SysPrefs'] = new sys_prefs();