Skip to content
Unverified Commit c0c37903 authored by Jan Hoffmann's avatar Jan Hoffmann Committed by GitHub
Browse files

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: 3ac4f567

 ("luci-app-vnstat2: use more efficient way to get database interfaces")

Signed-off-by: default avatarJan Hoffmann <jan@3e8.eu>
parent b3d1d056
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment