From 1191bcc0bc6b27e1fd9d1a6e80c5e522008101ea Mon Sep 17 00:00:00 2001
From: radix-pro <mobiradix@gmail.com>
Date: Wed, 8 Apr 2015 15:17:54 +0300
Subject: [PATCH] Update EuropeanaResults.php

Some fix for new Zend Framework
---
 module/VuFind/src/VuFind/Recommend/EuropeanaResults.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php b/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php
index b5f27db358f..fadca215d10 100644
--- a/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php
+++ b/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php
@@ -227,12 +227,12 @@ class EuropeanaResults implements RecommendInterface,
         $parsedFeed = FeedReader::import($this->targetUrl);
         $resultsProcessed = [];
         foreach ($parsedFeed as $value) {
-            $link = (string)$value->link;
+            $link = $value->getLink();
             if (!empty($link)) {
                 $resultsProcessed[] = [
-                    'title' => (string)$value->title,
+                    'title' => $value->getTitle(),
                     'link' => substr($link, 0, strpos($link, '.srw')) . '.html',
-                    'enclosure' => (string)$value->enclosure['url']
+                    'enclosure' => $value->getEnclosure()['url']
                 ];
             }
             if (count($resultsProcessed) == $this->limit) {
@@ -260,4 +260,4 @@ class EuropeanaResults implements RecommendInterface,
     {
         return $this->results;
     }
-}
\ No newline at end of file
+}
-- 
GitLab