From d6c028fa35e1a0d243698284dbb928cc328817f8 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 4 Oct 2008 08:44:48 +0000 Subject: [PATCH] Per siebrand: fix E_STRICT --- includes/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Validate.php b/includes/Validate.php index 9dc3f37670..7c598cfbda 100644 --- a/includes/Validate.php +++ b/includes/Validate.php @@ -14,7 +14,7 @@ class Validate { * @param int $max The upper limit * @return int */ - function int( &$val, $min=0, $max=0x7fffffff ) { + public static function int( &$val, $min=0, $max=0x7fffffff ) { $val = intval($val); $val = min($val, $max); $val = max($val, $min); -- 2.20.1