Commit dc7330fb authored by webchick's avatar webchick
Browse files

Issue #2060811 by legolasbo: Remove Unused local variable from...

Issue #2060811 by legolasbo: Remove Unused local variable  from /core/lib/Drupal/Core/Database/StatementPrefetch.php.
parent 24098232
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment