From 88a12df24fc5ecede6cce3f7283c7142e2d143d2 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 12 Nov 2013 11:38:33 -0500
Subject: [PATCH] Eliminated unused variables.

---
 module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php
index 6925ae425d4..f90cb825262 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php
@@ -520,7 +520,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface
                 = $key.$this->delimiters['login'].$login['cat_username'];
             return $login;
         }
-        foreach ($this->drivers as $key => $driver) {
+        foreach (array_keys($this->drivers) as $key) {
             $login =  $this->getDriver($key)->patronLogin($username, $password);
             if ($login) {
                 $login['cat_username']
@@ -581,7 +581,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface
         }
 
         // Lastly, we see if any of the drivers we have support the function
-        foreach ($this->drivers as $key => $driver) {
+        foreach (array_keys($this->drivers) as $key) {
             $driverInst = $this->getUninitializedDriver($key);
             if (is_callable(array($driverInst, $method))) {
                   return true;
@@ -666,7 +666,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface
         $returnArray = array();
         // Here we loop through evry instance we have access to and change what
         // we do based off of the configuration behavior.
-        foreach ($this->drivers as $key => $driver) {
+        foreach (array_keys($this->drivers) as $key) {
             $funcReturn = $this->runIfPossible($key, $methodName, $params, $called);
             if ($called) {
                 if ($behavior == "use_first" || !is_array($funcReturn)) {
-- 
GitLab