Skip to content

Commit 97be9ac

Browse files
demiankatzUBMA Sysadmins
authored andcommitted
Apply suggestion from code review
Reviewed-by: Stefan Weil <sw@weilnetz.de>
1 parent b66944e commit 97be9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/VuFind/src/VuFind/Content/Covers/RecordData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public function getUrl($key, $size, $ids)
6969
$recordId = $ids['recordid'];
7070
$source = $ids['source'] ?? DEFAULT_SEARCH_BACKEND;
7171
$driver = $this->recordLoader->load($recordId, $source);
72-
return $driver->getCoverUrl();
72+
return $driver->tryMethod('getCoverUrl', default: false);
7373
}
7474
}

0 commit comments

Comments
 (0)