Index: trunk/phase3/includes/Validate.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | * @param int $max The upper limit |
16 | 16 | * @return int |
17 | 17 | */ |
18 | | - function int( &$val, $min=0, $max=0x7fffffff ) { |
| 18 | + public static function int( &$val, $min=0, $max=0x7fffffff ) { |
19 | 19 | $val = intval($val); |
20 | 20 | $val = min($val, $max); |
21 | 21 | $val = max($val, $min); |