luci/applications/luci-app-statistics
Hannu Nyman d04f667383 luci-app-statistics: check that uci config sections exist
A missing or faulty luci_statistics config file may prevent
LuCI access completely already at the login phase as
the statistics config is parsed already then.

The error is like:
  .../statistics/datatree.lua:16: attempt to index upvalue 'sections' (a nil value)

User may be completely locked out of LuCI until he figures out
the need to have a proper luci_statistics config file.

Prevent the error by checking for the existence of
the uci config sections before trying to use values from them.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-10 19:15:52 +03:00
..
luasrc luci-app-statistics: check that uci config sections exist 2017-05-10 19:15:52 +03:00
po i18n: Sync translations 2017-05-02 19:12:32 +09:00
root luci-app-statistics: fix whitespace 2017-05-02 10:07:30 +03:00
Makefile Fix config files getting overwritten in opkg install 2016-12-10 11:20:01 +02:00