1
0
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:
Klas Lindfors 2012-05-24 14:37:01 +02:00
parent 027dc9ff6c
commit 6a94b396dc

View File

@ -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__'];
}