Skip to content

Commit 8d7a801

Browse files
committed
refactoring
1 parent e87a781 commit 8d7a801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/model/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ public function findAll($data = null)
140140
public function findOne($data)
141141
{
142142
$this->data['conditions'] = $data;
143-
return $this->find()
144-
->stmt->fetch(PDO::FETCH_ASSOC);
143+
return $this->fetch = $this->find()
144+
->stmt->fetch(PDO::FETCH_ASSOC);
145145
}
146146

147147
public function findById($id)

0 commit comments

Comments
 (0)