Skip to content

Commit

Permalink
Merge branch 'v1.19.7' of github.com:GiritInteractive/magento2-module…
Browse files Browse the repository at this point in the history
…-cloudinary into v1.19.7
  • Loading branch information
arielien committed Sep 5, 2023
2 parents 343249e + 8f680c9 commit 7d91aa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Helper/MediaLibraryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public function getCloudinaryMLshowOptions($resourceType = null, $path = "")
*/
public function getCname()
{
$cname = isset($this->configuration->getCredentials()['cname']) ? $this->configuration->getCredentials()['cname'] : null;
return $cname;
return $this->configuration->isEnabled() && isset($this->configuration->getCredentials()['cname']) ? $this->configuration->getCredentials()['cname'] : null;
}
}

0 comments on commit 7d91aa7

Please sign in to comment.