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())
this time for the pdo code on oracle branch.
This commit is contained in:
parent
34706698a4
commit
806ad0c72f
@ -198,11 +198,11 @@ class DbImpl extends Db
|
||||
{
|
||||
if(!$result) $result = $this->result;
|
||||
if($result) {
|
||||
$count = count($result->fetchAll());
|
||||
$result->closeCursor();
|
||||
return $count;
|
||||
$count=$result->rowCount();
|
||||
$result->closeCursor();
|
||||
return $count;
|
||||
} else {
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user