1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fix for change back to en

This commit is contained in:
Hillel Coren 2018-02-15 23:05:19 +02:00
parent 95fb50586e
commit 215736f8fd

View File

@ -132,7 +132,7 @@ class AccountController extends BaseController
Auth::login($user, true);
event(new UserSignedUp());
if ($account && $account->language_id != DEFAULT_LANGUAGE) {
if ($account && $account->language_id && $account->language_id != DEFAULT_LANGUAGE) {
$link = link_to('/invoices/create?lang=en', 'click here');
$message = sprintf('Your account language has been set automatically, %s to change to English', $link);
Session::flash('warning', $message);