FIX warning on pdf url
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
99bd6ce36e
commit
0183085c74
|
|
@ -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;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user