cvs: pear /Validate/Validate NL.php

From: Date: Wed, 15 Oct 2003 09:26:40 +0000
Subject: cvs: pear /Validate/Validate NL.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13620@lists.php.net to get a copy of this message
zyprexia Wed Oct 15 05:26:40 2003 EDT Modified files: /pear/Validate/Validate NL.php Log: Check if checksum if greather than zero,k otherwise we try to divide by zero.. Index: pear/Validate/Validate/NL.php diff -u pear/Validate/Validate/NL.php:1.4 pear/Validate/Validate/NL.php:1.5 --- pear/Validate/Validate/NL.php:1.4 Wed Oct 8 14:09:03 2003 +++ pear/Validate/Validate/NL.php Wed Oct 15 05:26:39 2003 @@ -16,7 +16,7 @@ // | Authors: Dave Mertens <zyprexia@php.net> | // +----------------------------------------------------------------------+ // -// $Id: NL.php,v 1.4 2003/10/08 18:09:03 zyprexia Exp $ +// $Id: NL.php,v 1.5 2003/10/15 09:26:39 zyprexia Exp $ // // Specific validation methods for data used in NL // @@ -112,7 +112,7 @@ } //Banknumber is 'correct' if we can divide checksum by 11 - if ($checksum % 11 == 0) + if ($checksum > 0 && $checksum % 11 == 0) $result = true; //return result

« previous php.pear.cvs (#13620) next »