X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLIntField.php;h=c87a778a4ae03264808a5e29f933cec1b27c693c;hb=69ae945e8d39972a07bea89ddb64bc0189b43ac2;hp=b0148d987e4ea628bd2229ce8e0b011804fb96f3;hpb=bdfe02223205923d923923dd420ba0dd863cd0fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLIntField.php b/includes/htmlform/fields/HTMLIntField.php index b0148d987e..c87a778a4a 100644 --- a/includes/htmlform/fields/HTMLIntField.php +++ b/includes/htmlform/fields/HTMLIntField.php @@ -4,14 +4,14 @@ * A field that must contain a number */ class HTMLIntField extends HTMLFloatField { - function validate( $value, $alldata ) { + public function validate( $value, $alldata ) { $p = parent::validate( $value, $alldata ); if ( $p !== true ) { return $p; } - # http://www.w3.org/TR/html5/infrastructure.html#signed-integers + # https://www.w3.org/TR/html5/infrastructure.html#signed-integers # with the addition that a leading '+' sign is ok. Note that leading zeros # are fine, and will be left in the input, which is useful for things like # phone numbers when you know that they are integers (the HTML5 type=tel