mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
check if $sl or $timeout is empty, if they are insert default
This commit is contained in:
parent
027dc9ff6c
commit
6a94b396dc
@ -81,10 +81,10 @@ if (isset($sl) && strcasecmp($sl, 'fast')==0) {
|
||||
if (isset($sl) && strcasecmp($sl, 'secure')==0) {
|
||||
$sl=$baseParams['__YKVAL_SYNC_SECURE_LEVEL__'];
|
||||
}
|
||||
if (!isset($sl)) {
|
||||
if (!isset($sl) || $sl == '') {
|
||||
$sl=$baseParams['__YKVAL_SYNC_DEFAULT_LEVEL__'];
|
||||
}
|
||||
if (!isset($timeout)) {
|
||||
if (!isset($timeout) || $timeout == '') {
|
||||
$timeout=$baseParams['__YKVAL_SYNC_DEFAULT_TIMEOUT__'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user