mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -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
|
@ -87,7 +87,7 @@ if (!empty($_POST['edit']) || !empty($_POST['new'])) {
|
|||
$release_group = isset($_POST['release_group']) ? (int)$_POST['release_group'] : 0;
|
||||
$group_name = isset($_POST['group_name']) ? trim($_POST['group_name']) : '';
|
||||
$group_desc = isset($_POST['group_description']) ? trim($_POST['group_description']) : '';
|
||||
$group_moderator = isset($_POST['username']) ? $_POST['username'] : '';
|
||||
$group_moderator = $_POST['username'] ?? '';
|
||||
|
||||
if ($group_name === '') {
|
||||
bb_die($lang['NO_GROUP_NAME']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue