Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-upnp / luasrc / controller / upnp.lua
index a7fd66fc11848ddde5d8138f45f1736b38f84c47..c88abddc24f33f78d4689d09ef18e268d7b25eae 100644 (file)
@@ -15,7 +15,7 @@ $Id$
 module("luci.controller.upnp", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/config/upnpd") then
+       if not luci.fs.access("/etc/config/upnpd") then
                return
        end