diff options
Diffstat (limited to 'src/ffluci/model/uci.lua')
-rw-r--r-- | src/ffluci/model/uci.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ffluci/model/uci.lua b/src/ffluci/model/uci.lua index 94a385c7e..828659780 100644 --- a/src/ffluci/model/uci.lua +++ b/src/ffluci/model/uci.lua @@ -157,12 +157,12 @@ end function Session._uci3(self, cmd) local res = ffluci.sys.execl(self.ucicmd .. " 2>&1 " .. cmd) - if res[1]:sub(1, ucicmd:len() + 1) == ucicmd .. ":" then + if res[1] and res[1]:sub(1, self.ucicmd:len()+1) == self.ucicmd..":" then return nil, res[1] end table = {} - + for k,line in pairs(res) do c, s, t = line:match("^([^.]-)%.([^.]-)=(.-)$") if c then |