Skip to content

Commit

Permalink
Fix in_array to string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha committed Sep 20, 2024
1 parent 5a5cc85 commit 17d9dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Finna/src/Finna/RecordDriver/SolrMarc.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function getAllImages($language = 'fi', $includePdf = true)

$urls = [];
foreach ($this->getMarcReader()->getFields('856') as $url) {
if (!in_array($url['i2'], [' ', 0])) {
if (!in_array($url['i2'], [' ', '0'])) {
continue;
}
$address = $this->getSubfield($url, 'u');
Expand Down

0 comments on commit 17d9dc3

Please sign in to comment.