mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Use "null coalescing assignment" operator for $docroot
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
require_once "$docroot/webGui/include/Secure.php";
|
||||
|
||||
function pgrep($proc) {
|
||||
|
||||
Reference in New Issue
Block a user