Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return 0 if there is no result.

The documented return is an integer.  Stick to that.
Fixes #2430
  • Loading branch information...
commit 101148c10f95108a9764b09e524292c6686b4978 1 parent ac408b3
Mark Story markstory authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Model/Datasource/DboSource.php
2  lib/Cake/Model/Datasource/DboSource.php
View
@@ -484,7 +484,7 @@ public function lastAffected($source = null) {
if ($this->hasResult()) {
return $this->_result->rowCount();
}
- return null;
+ return 0;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.