Merge pull request 'Use PHP 7.4 features' (#77) from wn/tt-rss:feature/php-7.4-stuff into master

Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/77
This commit is contained in:
fox
2022-08-17 19:38:15 +03:00
26 changed files with 169 additions and 266 deletions

View File

@@ -417,8 +417,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']);