Fixes in wpdo
This commit is contained in:
parent
bea8e57a33
commit
9ea2a28f95
4 changed files with 47 additions and 29 deletions
|
|
@ -140,7 +140,7 @@ class WPDO {
|
|||
|
||||
if($this->select($fields, $where_sql.' limit 1', $values)) {
|
||||
|
||||
$rows=$this->sth->fetchAll();
|
||||
$rows=$this->sth->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
||||
if(count($rows)>0) {
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ class WPDO {
|
|||
|
||||
if($this->query('select count(*) from '.$this->table->name.' '.$where_sql, $values)) {
|
||||
|
||||
$rows=$this->sth->fetchAll();
|
||||
$rows=$this->sth->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
||||
if(count($rows)>0) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue