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