1
0
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:
Klas Lindfors 2012-06-13 08:53:52 +02:00
parent a86414b9ff
commit 2bbb3b4c02

View File

@ -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') .