bugfix version.php display

This commit is contained in:
OpenXE 2024-11-19 16:44:03 +01:00
parent 1e458803c1
commit 561b8c428e

View File

@ -6,7 +6,7 @@ $gitinfo = file_get_contents("../gitinfo.json");
if (!empty($gitinfo)) { if (!empty($gitinfo)) {
$gitinfo = json_decode($gitinfo); $gitinfo = json_decode($gitinfo);
if ($gitinfo->branch != 'master') { if ($gitinfo->branch != 'master' && !empty($gitinfo->branch)) {
$version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")"; $version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")";
} }
else { else {