We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112e7b3 commit 9d7e183Copy full SHA for 9d7e183
1 file changed
ucdlib-assets/includes/main.php
@@ -108,11 +108,11 @@ public function readBuildInfo($filename) {
108
}
109
110
public function getBuildVersion($buildInfo){
111
- if ( array_key_exists('tag', $buildInfo) ) {
+ if ( !empty($buildInfo['tag']) ) {
112
return $buildInfo['tag'];
113
- } else if ( array_key_exists('branch', $buildInfo) ) {
+ } else if ( !empty($buildInfo['branch']) ) {
114
return $buildInfo['branch'];
115
- } else if ( array_key_exists('imageTag', $buildInfo) ) {
+ } else if ( !empty($buildInfo['imageTag']) ) {
116
$imageTag = explode(':', $buildInfo['imageTag']);
117
return end($imageTag);
118
0 commit comments