Permalink
Browse files

Return 0 if there is no result.

The documented return is an integer.  Stick to that.
Fixes #2430
  • Loading branch information...
1 parent ac408b3 commit 101148c10f95108a9764b09e524292c6686b4978 @markstory markstory committed Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/DboSource.php
@@ -484,7 +484,7 @@ public function lastAffected($source = null) {
if ($this->hasResult()) {
return $this->_result->rowCount();
}
- return null;
+ return 0;
}
/**

0 comments on commit 101148c

Please sign in to comment.