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:
parent
c12ec8e266
commit
bfbb80b17a
3
NEWS
3
NEWS
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user