mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
do $res->rowCount() instead of count($res->fetchAll())
should never be called after select, and will throw exceptions if you do
This commit is contained in:
parent
a41b7476ac
commit
6dd55013f9
@ -378,7 +378,7 @@ or false on failure.
|
|||||||
public function rowCount()
|
public function rowCount()
|
||||||
{
|
{
|
||||||
if($this->result) {
|
if($this->result) {
|
||||||
$count=count($this->result->fetchAll());
|
$count=$this->result->rowCount();
|
||||||
$this->result->closeCursor();
|
$this->result->closeCursor();
|
||||||
return $count;
|
return $count;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user