Skip to content
Snippets Groups Projects
Commit 0d30ebc6 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fixed a possible PHP notice from the EDS record driver. (#948)

parent 60b56c3c
No related merge requests found
...@@ -269,7 +269,7 @@ class EDS extends SolrDefault ...@@ -269,7 +269,7 @@ class EDS extends SolrDefault
{ {
if (isset($this->fields['FullText']['Links'])) { if (isset($this->fields['FullText']['Links'])) {
foreach ($this->fields['FullText']['Links'] as $link) { foreach ($this->fields['FullText']['Links'] as $link) {
if (isset($link['Type']) if (!empty($link['Type']) && !empty($link['Url'])
&& in_array($link['Type'], $this->pdfTypes) && in_array($link['Type'], $this->pdfTypes)
) { ) {
return $link['Url']; // return PDF link return $link['Url']; // return PDF link
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment