diff options
author | wn_ <[email protected]> | 2022-08-12 18:21:38 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-08-12 18:21:38 +0000 |
commit | c301053965004f43408545f4b80cf444ce6a9587 (patch) | |
tree | 8a7ea219a065bceee9924553d4003806d0f5c1fd /classes/handler/public.php | |
parent | 3487c922b3f34449fecdddebe1fd2ee3b8c42e65 (diff) |
Use the null coalescing assignment operator in various places.
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index e1486e753..8ddf9bd3d 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -412,8 +412,7 @@ class Handler_Public extends Handler { if (session_status() != PHP_SESSION_ACTIVE) session_start(); - if (!isset($_SESSION["login_error_msg"])) - $_SESSION["login_error_msg"] = __("Incorrect username or password"); + $_SESSION["login_error_msg"] ??= __("Incorrect username or password"); } $return = clean($_REQUEST['return']); |