Skip to content

Commit 9d7e183

Browse files
committed
1 parent 112e7b3 commit 9d7e183

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ucdlib-assets/includes/main.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ public function readBuildInfo($filename) {
108108
}
109109

110110
public function getBuildVersion($buildInfo){
111-
if ( array_key_exists('tag', $buildInfo) ) {
111+
if ( !empty($buildInfo['tag']) ) {
112112
return $buildInfo['tag'];
113-
} else if ( array_key_exists('branch', $buildInfo) ) {
113+
} else if ( !empty($buildInfo['branch']) ) {
114114
return $buildInfo['branch'];
115-
} else if ( array_key_exists('imageTag', $buildInfo) ) {
115+
} else if ( !empty($buildInfo['imageTag']) ) {
116116
$imageTag = explode(':', $buildInfo['imageTag']);
117117
return end($imageTag);
118118
}

0 commit comments

Comments
 (0)