From 2bbb3b4c02c2b18ee5d7212ef8328b68b1111cf2 Mon Sep 17 00:00:00 2001 From: Klas Lindfors <klas@yubico.com> Date: Wed, 13 Jun 2012 08:53:52 +0200 Subject: [PATCH] findByMultiple() calls fetchArray on it's own result, just loop it. --- ykval-synclib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index 297b2b7..ecec83d 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -383,7 +383,7 @@ class SyncLib $urls=array(); $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') . "?otp=" . $this->db->getRowValue($row, 'otp') . "&modified=" . $this->db->getRowValue($row, 'modified') .