mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Null coalescing operator can be used.
This commit is contained in:
parent
ec96f6567b
commit
552f2a24a4
26 changed files with 68 additions and 70 deletions
|
@ -273,7 +273,7 @@ class sql_db
|
|||
$row = mysqli_fetch_assoc($result);
|
||||
|
||||
if ($field_name) {
|
||||
return isset($row[$field_name]) ? $row[$field_name] : false;
|
||||
return $row[$field_name] ?? false;
|
||||
}
|
||||
|
||||
return $row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue