mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 10:52:18 +01:00
findByMultiple() calls fetchArray on it's own result, just loop it.
This commit is contained in:
parent
a86414b9ff
commit
2bbb3b4c02
@ -383,7 +383,7 @@ class SyncLib
|
|||||||
|
|
||||||
$urls=array();
|
$urls=array();
|
||||||
$res=$this->db->findByMultiple('queue', array("modified"=>$this->otpParams['modified'], "server_nonce"=>$this->server_nonce));
|
$res=$this->db->findByMultiple('queue', array("modified"=>$this->otpParams['modified'], "server_nonce"=>$this->server_nonce));
|
||||||
while ($row = $this->db->fetchArray($res)) {
|
foreach($res as $row)
|
||||||
$urls[]=$this->db->getRowValue($row, 'server') .
|
$urls[]=$this->db->getRowValue($row, 'server') .
|
||||||
"?otp=" . $this->db->getRowValue($row, 'otp') .
|
"?otp=" . $this->db->getRowValue($row, 'otp') .
|
||||||
"&modified=" . $this->db->getRowValue($row, 'modified') .
|
"&modified=" . $this->db->getRowValue($row, 'modified') .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user