projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-app-statistics: only render index view for more than one instance
[project/luci.git]
/
applications
/
luci-app-statistics
/
luasrc
/
controller
/
luci_statistics
/
luci_statistics.lua
diff --git
a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index
d0415cd
..
d9c52ed
100644
(file)
--- a/
applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/
applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@
-170,7
+170,7
@@
function statistics_render()
if #instances == 0 then
--instances = { graph.tree:plugin_instances( plugin )[1] }
instances = graph.tree:plugin_instances( plugin )
- is_index =
true
+ is_index =
(#instances > 1)
-- index instance requested
elseif instances[1] == "-" then