From: Philipp Date: Sun, 7 Nov 2021 12:29:33 +0000 (+0100) Subject: Update src/Core/Worker/Factory/Process.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb908aca6dce44b2e2dccdca1a7a60be2643a766;p=friendica.git Update src/Core/Worker/Factory/Process.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Core/Worker/Factory/Process.php b/src/Core/Worker/Factory/Process.php index 7e9c2606fb..9a45eebc41 100644 --- a/src/Core/Worker/Factory/Process.php +++ b/src/Core/Worker/Factory/Process.php @@ -29,11 +29,7 @@ class Process extends BaseFactory implements ICanCreateFromTableRow { public function determineHost(?string $hostname = null): string { - if (empty($hostname)) { - $hostname = php_uname('n'); - } - - return strtolower($hostname); + return strtolower($hostname ?? php_uname('n')); } public function createFromTableRow(array $row): Entity\Process