@@ 46-49 (lines=4) @@ | ||
43 | $max = $this->max; |
|
44 | $min = $this->min; |
|
45 | ||
46 | if(null !== $max && $v > $max) |
|
47 | { |
|
48 | $e = sprintf( __("Value must be less than %d",'amarkal'), $max); |
|
49 | } |
|
50 | ||
51 | if(null !== $min && $v < $min) |
|
52 | { |
|
@@ 51-54 (lines=4) @@ | ||
48 | $e = sprintf( __("Value must be less than %d",'amarkal'), $max); |
|
49 | } |
|
50 | ||
51 | if(null !== $min && $v < $min) |
|
52 | { |
|
53 | $e = sprintf( __("Value must be greater than %d",'amarkal'), $min); |
|
54 | } |
|
55 | ||
56 | return $e ? false : true; |
|
57 | } |