From c8214342dcfb924a2d0b5f4d95c217245749f0cb Mon Sep 17 00:00:00 2001
From: mrded <mrded@556088.no-reply.drupal.org>
Date: Wed, 2 Oct 2013 20:48:27 +0100
Subject: [PATCH] Remove Unused local variable $alias

---
 core/modules/views/lib/Drupal/views/ManyToOneHelper.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/modules/views/lib/Drupal/views/ManyToOneHelper.php b/core/modules/views/lib/Drupal/views/ManyToOneHelper.php
index 08c8cd9..e898a87 100644
--- a/core/modules/views/lib/Drupal/views/ManyToOneHelper.php
+++ b/core/modules/views/lib/Drupal/views/ManyToOneHelper.php
@@ -220,11 +220,11 @@ public function ensureMyTable() {
             }
             $this->handler->view->many_to_one_aliases[$field][$value] = $this->handler->table . '_value_' . ($this->handler->view->many_to_one_count[$this->handler->table]++);
           }
-          $alias = $this->handler->tableAliases[$value] = $this->addTable($join, $this->handler->view->many_to_one_aliases[$field][$value]);
 
-          // and set table_alias to the first of these.
+          $this->handler->tableAliases[$value] = $this->addTable($join, $this->handler->view->many_to_one_aliases[$field][$value]);
+          // Set tableAlias to the first of these.
           if (empty($this->handler->tableAlias)) {
-            $this->handler->tableAlias = $alias;
+            $this->handler->tableAlias = $this->handler->tableAliases[$value];
           }
         }
       }
-- 
1.8.3.4 (Apple Git-47)

