1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Fixed problems when no current result exists.

This commit is contained in:
Dain Nilsson 2013-01-31 16:35:02 +01:00
parent c12ec8e266
commit bfbb80b17a
2 changed files with 5 additions and 1 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
* Version 2.21 unreleased
* Fixed a problem that caused ykval-queue to terminate if the database
was not available initially.
* Version 2.20 released 2013-01-31
* Add ChangeLog generation using git2cl.

View File

@ -28,6 +28,7 @@ class DbImpl extends Db
$this->db_username=$db_username;
$this->db_password=$db_password;
$this->db_options=$db_options;
$this->result = null;
$this->myLog=new Log($name);
}
@ -96,7 +97,7 @@ class DbImpl extends Db
*/
public function closeCursor($result=null){
if(!$result) $result = $this->result;
$result->closeCursor();
if($result) $result->closeCursor();
}
public function truncateTable($name)