Skip to content

Commit

Permalink
stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Sep 8, 2016
1 parent bcf9182 commit 46372a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public function createFromDatabase(array $data)
$data[$name] = $field->dataFromDatabase($data[$name]);
}

if (!is_array($daga = $this->dataFromDatabase(array_intersect_key($data, $this->fields)))) {
if (!is_array($data = $this->dataFromDatabase(array_intersect_key($data, $this->fields)))) {
throw new SimpleCrudException('Data not valid');
}

Expand Down

0 comments on commit 46372a6

Please sign in to comment.