Use the null coalescing assignment operator in various places.

This commit is contained in:
wn_
2022-08-12 18:21:38 +00:00
parent 3487c922b3
commit c301053965
6 changed files with 22 additions and 42 deletions

View File

@@ -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']);