Skip to content

Commit

Permalink
Fix regression that popped up between #50 and #51
Browse files Browse the repository at this point in the history
  • Loading branch information
froboy committed Dec 17, 2018
1 parent cbe3b06 commit c9f1683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SearchApiFederatedSolrUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ protected function addUrl(array &$items) {
foreach ($items as &$item) {
$url = $this->index->datasource()->getItemUrl($item);
if (!$url) {
$item->search_api_urls = NULL;
$item->urls = NULL;
continue;
}
$item->search_api_urls = [url($url['path'], array('absolute' => TRUE) + $url['options'])];
$item->urls = [url($url['path'], array('absolute' => TRUE) + $url['options'])];
}
}

Expand Down

0 comments on commit c9f1683

Please sign in to comment.