Fixes in wpdo

This commit is contained in:
Antonio de la Rosa 2024-02-20 01:35:44 +01:00
parent bea8e57a33
commit 9ea2a28f95
4 changed files with 47 additions and 29 deletions

View file

@ -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) {