Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Yves <[email protected]>
Signed-off-by: Simon L. <[email protected]>
  • Loading branch information
szaimen and docjyJ authored Nov 4, 2024
1 parent 3ede76a commit a625570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/src/Docker/DockerActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ public function GetCurrentChannel() : string {
$output = json_decode($this->guzzleClient->get($url)->getBody()->getContents(), true);
$containerChecksum = $output['Image'];
$tagArray = explode(':', $output['Config']['Image']);
if (isset($tagArray[1])) {
if (count($tagArray) === 2) {
$tag = $tagArray[1];
} else {
error_log("No tag was found when getting the current channel. You probably did not follow the documentation correctly. Changing the channel to the default 'latest'.");
Expand Down

0 comments on commit a625570

Please sign in to comment.