mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +01:00
Refactor.
- syncServers was mostly always an array. - change init value from NULL to array(). - simplify getNumberOfServers.
This commit is contained in:
parent
adb7a49608
commit
731eed8fa9
@ -34,7 +34,7 @@ require_once 'ykval-log.php';
|
|||||||
|
|
||||||
class SyncLib
|
class SyncLib
|
||||||
{
|
{
|
||||||
public $syncServers = null;
|
public $syncServers = array();
|
||||||
public $dbConn = null;
|
public $dbConn = null;
|
||||||
public $curlopts = array();
|
public $curlopts = array();
|
||||||
|
|
||||||
@ -145,8 +145,7 @@ class SyncLib
|
|||||||
|
|
||||||
public function getNumberOfServers()
|
public function getNumberOfServers()
|
||||||
{
|
{
|
||||||
if (is_array($this->syncServers)) return count($this->syncServers);
|
return count($this->syncServers);
|
||||||
else return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function log($priority, $msg, $params=NULL)
|
public function log($priority, $msg, $params=NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user