luci/modules
Brian J. Murrell 2c2e7f5cbb
Fix bad argument to 'tonumber'
Fixes [FS#1118](https://bugs.lede-project.org/index.php?do=details&task_id=1118)

Luci chokes on devices that do not have _iptables_ installed with:

/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute firstchild dispatcher target for entry '/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/admin/status'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occured: [string "/usr/lib/lua/luci/view/admin_status/index.h..."]:34: bad argument  to 'tonumber' (string expected, got nil)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

The code should be more defensive.
2017-12-04 08:44:00 -05:00
..
luci-base timezone data: update to 2017c 2017-11-11 18:59:14 +02:00
luci-mod-admin-full Fix bad argument to 'tonumber' 2017-12-04 08:44:00 -05:00
luci-mod-admin-mini luci-mod-admin-mini: eliminate use of luci.sys.net.deviceinfo() 2017-07-11 14:05:31 +02:00
luci-mod-failsafe luci-mod-failsafe: use same string as luci-mod-admin-full 2016-12-10 19:11:50 +02:00
luci-mod-freifunk i18n: Update Chinese translation 2017-10-29 16:00:27 +08:00
luci-mod-freifunk-community Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-mod-rpc luci-mod-rpc: add license tag 2017-06-13 13:40:23 +02:00