X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Fpassword_reset.php;h=a20a2180c30b9bc59c5f87a6d584b13ea615171b;hb=bd8f517d30d1edd3261e26e582ddd9e11c555616;hp=afa2a1ec01305209d87fa12396c0115ed28c3cf4;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/access/password_reset.php b/access/password_reset.php index afa2a1ec..a20a2180 100644 --- a/access/password_reset.php +++ b/access/password_reset.php @@ -17,7 +17,7 @@ $js = ""; add_js_file('login.js'); @@ -57,14 +57,13 @@ function defaultCompany() echo "\n"; end_row(); - echo "\n"; + echo "\n"; table_section_title(_("Version")." $version Build ".$SysPrefs->build_version." - "._("Password reset")); text_row(_("Email"), "email_entry_field", "", 20, 30); - if (isset($_SESSION['wa_current_user']->company)) - $coy = $_SESSION['wa_current_user']->company; - else + $coy = user_company(); + if (!isset($coy)) $coy = $def_coy; if (!@$SysPrefs->text_company_selection) { echo ""._("Company")."