luci/applications/luci-app-vnstat2
Jan Hoffmann c0c37903f2
luci-app-vnstat2: fix configuration page when database is empty (#6746)
The output of the command "vnstat --dbiflist 1" is empty when there are
no interfaces in the database. Add a check to avoid a "result.stdout is
undefined" error in that case.

Ref: https://forum.openwrt.org/t/error-in-luci-vnstat2-configuration-menu/179700
Fixes: 3ac4f567df ("luci-app-vnstat2: use more efficient way to get database interfaces")

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-12-06 02:24:25 +01:00
..
htdocs/luci-static/resources/view/vnstat2 luci-app-vnstat2: fix configuration page when database is empty (#6746) 2023-12-06 02:24:25 +01:00
po treewide: Sync translations 2023-12-04 22:28:39 +02:00
root/usr/share uci-app-vnstat2: refactoring 2022-02-03 13:48:10 +01:00
Makefile applications: add missing dependency to luci-base 2023-09-24 11:11:42 +03:00