Universal Form Validator PHP Support Product Page

bug in maxcond function

Reported 20 Jun 2011 13:21:12
1
has this problem
20 Jun 2011 13:21:12 bernard delalande posted:
Hi,
found a bug in line 1652 of dmxvalidator.php:
bug =>

return intval(params(0)) <= intval($_POST[$element]);


in place of

return intval($params[0] <= intval($_POST[$element]);


missing $ and parenthesis in place of brackets.

Replies

Replied 20 Jun 2011 13:29:58
20 Jun 2011 13:29:58 bernard delalande replied:
and of course the <= operator must be reversed.

return intval($params[0] >= intval($_POST[$element]); 

Reply to this topic