Skip to content
Snippets Groups Projects

Resolve #3485352 "Throwing error in"

Closed Lavanya Talwar requested to merge issue/file_mdm-3485352:3485352-throwing-error-in into 3.1.x
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -183,7 +183,7 @@ class FileMetadata implements FileMetadataInterface {
*/
public function getMetadata($metadata_id, $key = NULL) {
try {
if ($plugin = $this->getFileMetadataPlugin($metadata_id)) {
if ($plugin = $this->getFileMetadataPlugin($metadata_id) && !empty($key)) {
$metadata = $plugin->getMetadata($key);
}
else {
Loading