mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-26 21: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
|
||||
{
|
||||
public $syncServers = null;
|
||||
public $syncServers = array();
|
||||
public $dbConn = null;
|
||||
public $curlopts = array();
|
||||
|
||||
@ -145,8 +145,7 @@ class SyncLib
|
||||
|
||||
public function getNumberOfServers()
|
||||
{
|
||||
if (is_array($this->syncServers)) return count($this->syncServers);
|
||||
else return 0;
|
||||
return count($this->syncServers);
|
||||
}
|
||||
|
||||
public function log($priority, $msg, $params=NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user