mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update doc block and remove inline assignment.
This commit is contained in:
parent
bd8f6e3d06
commit
a098ff28b8
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue