Skip to content

Commit

Permalink
Use isset instead of double boolean cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 23, 2014
1 parent cc7d7f2 commit bc5dcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Statement/StatementDecorator.php
Expand Up @@ -276,7 +276,7 @@ public function lastInsertId($table = null, $column = null) {
if ($column && $this->columnCount()) {
$row = $this->fetch('assoc');
}
if ($column && $row) {
if (isset($row[$column])) {
return $row[$column];
}
return $this->_driver->lastInsertId($table, $column);
Expand Down

0 comments on commit bc5dcbe

Please sign in to comment.