applications/luci-splash: cope with non-numeric (invalid) limit_up & limit_down value...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Jun 2009 12:36:31 +0000 (12:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Jun 2009 12:36:31 +0000 (12:36 +0000)
applications/luci-splash/root/usr/sbin/luci-splash

index 244adc9..99fdd1b 100755 (executable)
@@ -16,8 +16,8 @@ function main(argv)
        local cmd = argv[1]
        local arg = argv[2]
 
-       limit_up = tonumber(uci:get("luci_splash", "general", "limit_up") or 0)
-       limit_down = tonumber(uci:get("luci_splash", "general", "limit_down") or 0)
+       limit_up = tonumber(uci:get("luci_splash", "general", "limit_up")) or 0
+       limit_down = tonumber(uci:get("luci_splash", "general", "limit_down")) or 0
        
        uci:foreach("luci_splash", "iface", function(s)
                if s.network then