luci-base: datatypes.lua: add missing parentheses in conditional
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 Jan 2017 12:51:23 +0000 (13:51 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 Jan 2017 12:52:12 +0000 (13:52 +0100)
commit7cd9ecff001fa0a76d6df611db02bbcaf66a1024
tree1d87d1ab67694335c4a72c66429b5988e5d7aed3
parent33a917f9c444fc6efb4a60de64d6fbe0e32f6d77
luci-base: datatypes.lua: add missing parentheses in conditional

The missing parens lead to a wrong expression precedence, causing a runtime
error when attempting to compare nil with a number.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/cbi/datatypes.lua