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:51:27 +0000 (13:51 +0100)
commitec9942925c80a278a565091a194485999d6be74d
tree939536aa5c58c11baa1adbe2ece9938d3048e046
parentb6c1ac3bb0bbb3a4485feffda48e2c30b3d49386
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