luci-0.9: merge r6014

This commit is contained in:
Jo-Philipp Wich 2010-04-03 19:02:18 +00:00
parent f6f39eda94
commit 82ca74d1b3

View file

@ -176,7 +176,7 @@ end
function prepare_tls(tlskey)
local tls
if tlskey and cursor:get(UCINAME, tlskey) then
if nixio.tls and tlskey and cursor:get(UCINAME, tlskey) then
tls = nixio.tls("server")
local make = cursor:get(UCINAME, tlskey, "generate") == "1"