tests are showing mResultSet is sometimes false when it free() is run, so adding defensive ifs
This commit is contained in:
parent
09917fde80
commit
2b50b7a522
1 changed files with 6 additions and 0 deletions
|
|
@ -557,6 +557,9 @@ class SqlSearchResultSet extends SearchResultSet {
|
|||
}
|
||||
|
||||
function numRows() {
|
||||
if ($this->mResultSet === false )
|
||||
return false;
|
||||
|
||||
return $this->mResultSet->numRows();
|
||||
}
|
||||
|
||||
|
|
@ -571,6 +574,9 @@ class SqlSearchResultSet extends SearchResultSet {
|
|||
}
|
||||
|
||||
function free() {
|
||||
if ($this->mResultSet === false )
|
||||
return false;
|
||||
|
||||
$this->mResultSet->free();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue