Use "null coalescing assignment" operator for $docroot

This commit is contained in:
bergware
2023-10-26 18:10:11 +02:00
parent af3eee47ae
commit 33a64665ea
@@ -11,7 +11,7 @@
*/
?>
<?
$docroot = $docroot ?: $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
require_once "$docroot/webGui/include/Wrappers.php";
if ($_POST['mode']>0) {