summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-08-12 18:21:38 +0000
committerwn_ <[email protected]>2022-08-12 18:21:38 +0000
commitc301053965004f43408545f4b80cf444ce6a9587 (patch)
tree8a7ea219a065bceee9924553d4003806d0f5c1fd /classes/handler
parent3487c922b3f34449fecdddebe1fd2ee3b8c42e65 (diff)
Use the null coalescing assignment operator in various places.
Diffstat (limited to 'classes/handler')
-rwxr-xr-xclasses/handler/public.php3
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']);