Skip to content

Commit

Permalink
Return 0 if there is no result.
Browse files Browse the repository at this point in the history
The documented return is an integer.  Stick to that.
Fixes #2430
  • Loading branch information
markstory committed Jan 3, 2012
1 parent ac408b3 commit 101148c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -484,7 +484,7 @@ public function lastAffected($source = null) {
if ($this->hasResult()) {
return $this->_result->rowCount();
}
return null;
return 0;
}

/**
Expand Down

0 comments on commit 101148c

Please sign in to comment.