Skip to content

Commit

Permalink
Fixed that mods that are created with OMM 1.2.x will show their image…
Browse files Browse the repository at this point in the history
… in the remote repository
  • Loading branch information
retroluxfilm authored and retroluxfilm committed Feb 23, 2024
1 parent 9281a87 commit 5ff3313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Package/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function createRemotePackageDescriptor(): RemotePackageDescriptor
}

// add logo image if set
if (isset($this->logoImageData) || isset($this->thumbnailData)) {
if ( (isset($this->logoImageData) && $this->logoImageData !== '') || (isset($this->thumbnailData) && $this->thumbnailData !== '' )) {

if(isset($this->thumbnailData)) {
if(isset($this->thumbnailData) && $this->thumbnailData !== '' ) {
// directly pass image data that was already encoded internally in OMM
$thumbnail = $this->thumbnailData;
} else {
Expand Down

0 comments on commit 5ff3313

Please sign in to comment.