diff options
author | Dirk Brenken <dev@brenken.org> | 2017-07-05 21:31:56 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2017-07-05 21:31:56 +0200 |
commit | 985f0f5118c01916c9d1aac93f2198dd0517c9f0 (patch) | |
tree | 6f863d5ca21b1647b678fdb38c54149cf96b2b12 /applications/luci-app-adblock/luasrc/model | |
parent | 3c5e41d36932e73d14d21054f7bcaa165cfdf6dc (diff) |
luci-app-adblock: bugfix
* fix nil error on overview page
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/model')
-rw-r--r-- | applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua index 6d01e13278..68f9c8897e 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua @@ -7,7 +7,7 @@ local sys = require("luci.sys") local json = require("luci.jsonc") local adbinput = uci.get("adblock", "global", "adb_rtfile") or "/tmp/adb_runtime.json" local dnspath = uci.get("adblock", "global", "adb_dnsdir") or "" -local parse = json.parse(fs.readfile(adbinput)) +local parse = json.parse(fs.readfile(adbinput) or "") if parse ~= nil then version = parse.data.adblock_version domains = parse.data.blocked_domains |