mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-14 15:31:30 +00:00
Fixed potential bugs
This commit is contained in:
parent
a6ef9a58ec
commit
3431320d03
4 changed files with 8 additions and 5 deletions
|
|
@ -62,6 +62,9 @@ final readonly class GitVersionInfoProvider
|
|||
{
|
||||
if (is_file($this->getGitDirectory() . '/HEAD')) {
|
||||
$git = file($this->getGitDirectory() . '/HEAD');
|
||||
if ($git === false) {
|
||||
return null;
|
||||
}
|
||||
$head = explode('/', $git[0], 3);
|
||||
|
||||
if (!isset($head[2])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue