mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Null coalescing operator can be used
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
4667c92f60
commit
f0d6d30def
27 changed files with 60 additions and 61 deletions
|
@ -182,7 +182,7 @@ $moderation = (!empty($_REQUEST['mod']) && $is_auth['auth_mod']);
|
|||
$mod_redirect_url = '';
|
||||
|
||||
if ($is_auth['auth_mod']) {
|
||||
$redirect = isset($_POST['redirect']) ? $_POST['redirect'] : @$_SERVER['REQUEST_URI'];
|
||||
$redirect = $_POST['redirect'] ?? @$_SERVER['REQUEST_URI'];
|
||||
$redirect = url_arg($redirect, 'mod', 1, '&');
|
||||
$mod_redirect_url = LOGIN_URL . "?redirect=$redirect&admin=1";
|
||||
|
||||
|
@ -798,7 +798,7 @@ foreach ($is_auth as $name => $is) {
|
|||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PG_ROW_CLASS' => isset($pg_row_class) ? $pg_row_class : 'row1',
|
||||
'PG_ROW_CLASS' => $pg_row_class ?? 'row1',
|
||||
));
|
||||
|
||||
if (IS_ADMIN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue