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 {