Update doc block and remove inline assignment.

This commit is contained in:
mark_story 2013-10-29 12:32:20 -04:00
parent bd8f6e3d06
commit a098ff28b8
2 changed files with 3 additions and 2 deletions

View file

@ -599,7 +599,7 @@ class Sqlserver extends DboSource {
* @param Model $model
* @param array $queryData
* @param integer $recursive
* @return array Array of resultset rows, or false if no rows matched
* @return array|false Array of resultset rows, or false if no rows matched
*/
public function read(Model $model, $queryData = array(), $recursive = null) {
$results = parent::read($model, $queryData, $recursive);

View file

@ -663,7 +663,8 @@ class DboSource extends DataSource {
if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
if ($result = $this->execute($sql, array(), $params)) {
$result = $this->execute($sql, array(), $params);
if ($result) {
$out = array();
if ($this->hasResult()) {