diff --git a/module/VuFind/src/VuFind/Recommend/SideFacets.php b/module/VuFind/src/VuFind/Recommend/SideFacets.php index 96fca96f5eba57fa22eb49bf72403101e56d4eea..cc7faa10d52640439fa581436cdc2906d4fa7710 100644 --- a/module/VuFind/src/VuFind/Recommend/SideFacets.php +++ b/module/VuFind/src/VuFind/Recommend/SideFacets.php @@ -271,7 +271,7 @@ class SideFacets extends AbstractFacets $final = array(); foreach ($filterList as $field => $filters) { $current = array(); - foreach ($filters as $i => $filter) { + foreach ($filters as $filter) { if (!isset($filter['suppressDisplay']) || !$filter['suppressDisplay'] ) { diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Recaptcha.php b/module/VuFind/src/VuFind/View/Helper/Root/Recaptcha.php index 4e6d4a4e98f62f35be4fe9e1ebbf5a9d278fd4ab..159a860a69e7f8ca0f8b5a9d32ca6a294c634a5e 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Recaptcha.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Recaptcha.php @@ -104,8 +104,6 @@ class Recaptcha extends AbstractHelper $errorPart = '&error=' . urlencode($params['error']); } - $reCaptchaOptions = ''; - $options = $this->recaptcha->getOptions(); if (!empty($options)) { $encoded = \Zend\Json\Json::encode($options); diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php index 8406f718a720f84c2cfc80d35811c02fd64f02b1..46c96e17ddbe1049b345906b8503fdc9efed65af 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php @@ -149,8 +149,6 @@ class Connector $params->set('pwd', $this->pwd); $response = $this->call('GET', $params->getArrayCopy(), false); $xml = simplexml_load_string($response); - $docs = isset($xml->SearchResults->records) - ? $xml->SearchResults->record : array(); $finalDocs = array(); foreach ($xml->SearchResults->records->rec as $doc) { $finalDocs[] = simplexml_load_string($doc->asXML()); @@ -173,7 +171,7 @@ class Connector public function checkForHttpError($result) { if (!$result->isSuccess()) { - throw HttpErrorException::createFromResponse($response); + throw HttpErrorException::createFromResponse($result); } } @@ -242,8 +240,6 @@ class Connector $this->client->resetParameters(); $response = $this->call('GET', $params->getArrayCopy(), false); $xml = simplexml_load_string($response); - $docs = isset($xml->SearchResults->records) - ? $xml->SearchResults->record : array(); $finalDocs = array(); foreach ($xml->SearchResults->records->rec as $doc) { $finalDocs[] = simplexml_load_string($doc->asXML());