[various] Replace deprecated defaults() calls by ?? operator

This commit is contained in:
Hypolite Petovan 2019-10-13 12:07:27 -04:00
parent ce7b5ff6ac
commit acdd62da3e
12 changed files with 27 additions and 26 deletions

View file

@ -114,7 +114,7 @@ function irc_content(&$a) {
if($autochans)
$channels = $autochans;
else
$channels = defaults($_GET, 'channels', 'friendica');
$channels = ($_GET['channels'] ?? '') ?: 'friendica';
/* add the chatroom frame and some html */
$o .= <<< EOT