Skip to content

Commit

Permalink
Правка для php8
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Oct 7, 2024
1 parent 7038811 commit 9c1a4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/System/Configs/VmToolsConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ private function getCpuVendor(): string
$grepPath = Util::which('grep');
$awk = Util::which('awk');
$result = shell_exec("$lsCpuPath | $grepPath vendor | $awk -F ' ' '{ print $3}'");
return strtolower(trim($result));
return strtolower(trim($result??''));
}
}

0 comments on commit 9c1a4be

Please sign in to comment.