FIX warning on pdf url
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-29 16:10:16 +02:00
parent 99bd6ce36e
commit 0183085c74

View File

@ -6,7 +6,7 @@ $authors = get_field('authors', $id);
$hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0; $hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0;
$pdf_version = get_field('pdf_version', $id); $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;
?> ?>