diff --git a/template-parts/articles/article-toolbar.php b/template-parts/articles/article-toolbar.php index f6bf11e..aa96caf 100644 --- a/template-parts/articles/article-toolbar.php +++ b/template-parts/articles/article-toolbar.php @@ -6,7 +6,7 @@ $authors = get_field('authors', $id); $hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0; $pdf_version = get_field('pdf_version', $id); -$pdf_url = isset($pdf_version) ? $pdf_version['url'] : null; +$pdf_url = isset($pdf_version) && !empty($pdf_version['url']) ? $pdf_version['url'] : null; ?>