From 561b8c428ebb788be0d524306ea6ea69abbfcc5f Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 19 Nov 2024 16:44:03 +0100 Subject: [PATCH] bugfix version.php display --- version.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.php b/version.php index 4a98a0a2..bd6cb0d2 100755 --- a/version.php +++ b/version.php @@ -5,8 +5,8 @@ $version_revision="1.12"; $gitinfo = file_get_contents("../gitinfo.json"); if (!empty($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.")"; } else {