cvs: pear /Payment_Process/Process Common.php

From: Date: Mon, 28 Jun 2004 21:57:29 +0000
Subject: cvs: pear /Payment_Process/Process Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21227@lists.php.net to get a copy of this message
ieure Mon Jun 28 17:57:29 2004 EDT Modified files: /pear/Payment_Process/Process Common.php Log: Fix validation of optional fields. http://cvs.php.net/diff.php/pear/Payment_Process/Process/Common.php?r1=1.19&r2=1.20&ty=u Index: pear/Payment_Process/Process/Common.php diff -u pear/Payment_Process/Process/Common.php:1.19 pear/Payment_Process/Process/Common.php:1.20 --- pear/Payment_Process/Process/Common.php:1.19 Thu Apr 1 13:25:42 2004 +++ pear/Payment_Process/Process/Common.php Mon Jun 28 17:57:29 2004 @@ -17,7 +17,7 @@ // | Joe Stump <joe@joestump.net> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.19 2004/04/01 18:25:42 jstump Exp $ +// $Id: Common.php,v 1.20 2004/06/28 21:57:29 ieure Exp $ require_once 'Payment/Process.php'; require_once 'Payment/Process/Type.php'; @@ -58,7 +58,7 @@ $func = '_validate'.ucfirst($field); // Don't validate unset optional fields - if (! $this->isRequired($field) && !strlen($this->field)) { + if (! $this->isRequired($field) && !strlen($this->$field)) { continue; }

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