mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Expression can be replaced by '??' version (#998)
This commit is contained in:
parent
f1ad43e02e
commit
abf1c86db8
1 changed files with 2 additions and 2 deletions
|
@ -330,7 +330,7 @@ class Torrent
|
||||||
if ($bb_cfg['bt_check_announce_url']) {
|
if ($bb_cfg['bt_check_announce_url']) {
|
||||||
include INC_DIR . '/torrent_announce_urls.php';
|
include INC_DIR . '/torrent_announce_urls.php';
|
||||||
|
|
||||||
$ann = isset($tor['announce']) ? $tor['announce'] : '';
|
$ann = $tor['announce'] ?? '';
|
||||||
$announce_urls['main_url'] = $bb_cfg['bt_announce_url'];
|
$announce_urls['main_url'] = $bb_cfg['bt_announce_url'];
|
||||||
|
|
||||||
if (!$ann || !\in_array($ann, $announce_urls)) {
|
if (!$ann || !\in_array($ann, $announce_urls)) {
|
||||||
|
@ -339,7 +339,7 @@ class Torrent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$info = isset($tor['info']) ? $tor['info'] : [];
|
$info = $tor['info'] ?? [];
|
||||||
|
|
||||||
if (!isset($info['name'], $info['piece length'])) {
|
if (!isset($info['name'], $info['piece length'])) {
|
||||||
self::torrent_error_exit($lang['TORFILE_INVALID']);
|
self::torrent_error_exit($lang['TORFILE_INVALID']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue