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
|
@ -690,8 +690,8 @@ if ($allowed_forums) {
|
|||
$passkey = DB()->fetch_row("SELECT auth_key FROM " . BB_BT_USERS . " WHERE user_id = " . (int)$user_id . " LIMIT 1");
|
||||
// Build torrents table
|
||||
foreach (DB()->fetch_rowset($sql) as $tor) {
|
||||
$dl = isset($tor['speed_down']) ? $tor['speed_down'] : 0;
|
||||
$ul = isset($tor['speed_up']) ? $tor['speed_up'] : 0;
|
||||
$dl = $tor['speed_down'] ?? 0;
|
||||
$ul = $tor['speed_up'] ?? 0;
|
||||
|
||||
$seeds = $tor['seeders'];
|
||||
$leechs = $tor['leechers'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue