1
0
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:
Klas Lindfors 2012-06-13 14:45:37 +02:00
parent a41b7476ac
commit 6dd55013f9

View File

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