- Merging codes

This commit is contained in:
Dave M. 2023-10-12 18:50:17 +00:00
parent 8d22132ef5
commit 3f92287829
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ return [
$file = explode(": ", $currentBranch)[1];
$path = $gitdir . str_replace("/", DIRECTORY_SEPARATOR, trim($file, " \t\n\r"));
return trim(file_get_contents($path), " \t\n\r");
return file_exists($path) ? trim(file_get_contents($path), " \t\n\r") : null;
}
}