Changeset 18


Ignore:
Timestamp:
2010-06-18 23:08:54 (15 years ago)
Author:
javier_guerra
Message:

less chance of 'nil index' errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified L_sPhoneUI.lua ΒΆ

    r17 r18  
    350350    function lug_sPhoneRequest_light(lul_device,lul_description,lul_js) 
    351351        local lul_Status = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1","Status",lul_device) 
    352         local lul_Level = luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",lul_device) 
     352        local lul_Level = luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",lul_device) or '0' 
    353353        local levelnum = tonumber(lul_Level) 
    354354 
Note: See TracChangeset for help on using the changeset viewer.