diff --git a/core/lib/Drupal/Core/Database/StatementPrefetch.php b/core/lib/Drupal/Core/Database/StatementPrefetch.php index f601f74d4ef191e9cc1f51dee5eaef89c76a2ab6..4be5c26ed5f2b11bc5361b1342473ca6fcf821e9 100644 --- a/core/lib/Drupal/Core/Database/StatementPrefetch.php +++ b/core/lib/Drupal/Core/Database/StatementPrefetch.php @@ -455,7 +455,6 @@ public function fetchAll($fetch_style = NULL, $fetch_column = NULL, $constructor public function fetchCol($index = 0) { if (isset($this->columnNames[$index])) { - $column = $this->columnNames[$index]; $result = array(); // Traverse the array as PHP would have done. while (isset($this->currentRow)) { @@ -493,8 +492,6 @@ public function fetchAllAssoc($key, $fetch_style = NULL) { // Traverse the array as PHP would have done. while (isset($this->currentRow)) { // Grab the row in its raw PDO::FETCH_ASSOC format. - $row = $this->currentRow; - // Grab the row in the format specified above. $result_row = $this->current(); $result[$this->currentRow[$key]] = $result_row; $this->next();