diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php index a2e6f86e679..602b3491a03 100644 --- a/core/CliMulti/Process.php +++ b/core/CliMulti/Process.php @@ -256,7 +256,7 @@ private static function psExistsAndRunsCorrectly() private static function awkExistsAndRunsCorrectly() { $testResult = @shell_exec('echo " 537 s000 Ss 0:00.05 login -pfl theuser /bin/bash -c exec -la bash /bin/bash" | ' . self::AWK_COMMAND . ' 2>/dev/null'); - return trim($testResult) == '537'; + return trim($testResult ?? '') == '537'; } private static function isSystemNotSupported()