mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50:11 +00:00
Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
parent
8998926e5b
commit
f59ea2af55
40 changed files with 115 additions and 94 deletions
|
@ -20,7 +20,7 @@ class Settings extends BaseAdminModule
|
|||
|
||||
$logfile = (!empty($_POST['logfile']) ? Strings::escapeTags(trim($_POST['logfile'])) : '');
|
||||
$debugging = !empty($_POST['debugging']);
|
||||
$loglevel = defaults($_POST, 'loglevel', LogLevel::ERROR);
|
||||
$loglevel = ($_POST['loglevel'] ?? '') ?: LogLevel::ERROR;
|
||||
|
||||
if (is_file($logfile) &&
|
||||
!is_writeable($logfile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue