aboutsummaryrefslogtreecommitdiff
path: root/templates/library/library_document_info.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/library/library_document_info.php')
-rw-r--r--templates/library/library_document_info.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/library/library_document_info.php b/templates/library/library_document_info.php
index 1247123..dffdade 100644
--- a/templates/library/library_document_info.php
+++ b/templates/library/library_document_info.php
@@ -2,7 +2,7 @@
$authors = $document->getAuthorNames();
$issue_date = $document->getIssueDate(true);
$identifiers = $document->getIdentifiers();
-$url = ($document->download_url ?: $document->document_url);
+$url = $document->download_url ?? $document->document_url ?? '';
$is_search = !$document->csl_data;
?>
<? if ($is_search) : ?>