From cb6ddf9900f9cb35ca61ae78a5e73cdbec69ebe8 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Mon, 15 Jun 2015 17:08:09 +0200 Subject: [PATCH] Fixed concatenation of empty unformattedSsid --- src/network/wlanconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/wlanconfig.lua b/src/network/wlanconfig.lua index 637b586..ad2a5aa 100644 --- a/src/network/wlanconfig.lua +++ b/src/network/wlanconfig.lua @@ -25,7 +25,7 @@ local deviceName, deviceApi local cachedApSsid, baseApSsid = nil, nil function M.getSubstitutedSsid(unformattedSsid) - log:debug("getSubstitutedSsid unformattedSsid:'" .. unformattedSsid .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil")) + log:debug("getSubstitutedSsid unformattedSsid:'" .. (unformattedSsid or "nil") .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil")) if unformattedSsid == baseApSsid and cachedApSsid ~= nil then return cachedApSsid end if not unformattedSsid or type(unformattedSsid) ~= 'string' then return nil end