From: Jo-Philipp Wich Date: Fri, 21 Feb 2020 07:49:05 +0000 (+0100) Subject: luci-app-statistics: df.js: fix null access in configSummary() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c16f91ccb9d28689f9c4fb2b2c35911a6c60fd2a;p=oweals%2Fluci.git luci-app-statistics: df.js: fix null access in configSummary() Fixes: #3657 Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js index fafe4afe1..2d317d38f 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js @@ -95,7 +95,7 @@ return L.Class.extend({ var devs = L.toArray(section.Devices), mounts = L.toArray(section.MountPoints), fstypes = L.toArray(section.FSTypes), - count = devs.length + mounts.length + count.length, + count = devs.length + mounts.length + fstypes.length, invert = section.IgnoreSelected == '1'; if (count == 0)