Skip to content

Commit 8f680c9

Browse files
committed
make sure cloudinary module is enabled before attempting to get cname in media library helper
1 parent f0f6891 commit 8f680c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Helper/MediaLibraryHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public function getCloudinaryMLshowOptions($resourceType = null, $path = "")
106106
*/
107107
public function getCname()
108108
{
109-
$cname = isset($this->configuration->getCredentials()['cname']) ? $this->configuration->getCredentials()['cname'] : null;
110-
return $cname;
109+
return $this->configuration->isEnabled() && isset($this->configuration->getCredentials()['cname']) ? $this->configuration->getCredentials()['cname'] : null;
111110
}
112111
}

0 commit comments

Comments
 (0)