luci-mod-admin-full: fix net diagnostics with missing config
authorJo-Philipp Wich <jo@mein.io>
Sun, 31 Jul 2016 13:59:58 +0000 (15:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 31 Jul 2016 14:00:09 +0000 (16:00 +0200)
commit1367f7b624e9ee926cdbd3235a9fec4450c904b5
treea4e660c0c6a6a24a20bb2092a012a388a267a87f
parentf9e5d11d62cbb3c4203a07ac5cc3873a783bb824
luci-mod-admin-full: fix net diagnostics with missing config

Gracefully handle a missing diag section in /etc/config/luci when rendering
the network diagnostics tool page.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm