diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-07-05 22:38:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-05 22:38:32 +0300 |
commit | 4f127c32544edabd420dbda114db50168a12ccfb (patch) | |
tree | 330102c2bebca5f8b1af464a8487e993bbe291c8 /applications | |
parent | 844921575c02124cd4894e1b2392cc34216f94bb (diff) | |
parent | 985f0f5118c01916c9d1aac93f2198dd0517c9f0 (diff) |
Merge pull request #1229 from dibdot/master
luci-app-adblock: bugfix
Diffstat (limited to 'applications')
-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 |