Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ function poco_init(App $a) {
|
||||
$system_mode = true;
|
||||
}
|
||||
|
||||
$format = defaults($_GET, 'format', 'json');
|
||||
$format = ($_GET['format'] ?? '') ?: 'json';
|
||||
|
||||
$justme = false;
|
||||
$global = false;
|
||||
|
||||
Reference in New Issue
Block a user