mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
bugfix version.php display
This commit is contained in:
parent
1e458803c1
commit
561b8c428e
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user