Skip to content

Commit

Permalink
Database: fixed Selection iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach authored and dg committed Nov 22, 2012
1 parent c2988e8 commit c7706ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Nette/Database/Table/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,11 @@ public function rewind()
/** @return ActiveRow */
public function current()
{
return $this->data[current($this->keys)];
if (($key = current($this->keys)) !== FALSE) {
return $this->data[$key];
} else {
return FALSE;
}
}


Expand Down

0 comments on commit c7706ee

Please sign in to comment.