mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-19 16:52:15 +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()
|
||||
{
|
||||
if($this->result) {
|
||||
$count=count($this->result->fetchAll());
|
||||
$count=$this->result->rowCount();
|
||||
$this->result->closeCursor();
|
||||
return $count;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user