cvs: pear /MDB2_Schema/MDB2/Schema Validate.php

From: Date: Tue, 15 Aug 2006 21:58:00 +0000
Subject: cvs: pear /MDB2_Schema/MDB2/Schema Validate.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41622@lists.php.net to get a copy of this message
lsmith Tue Aug 15 21:58:00 2006 UTC Modified files: /pear/MDB2_Schema/MDB2/Schema Validate.php Log: - stop processing field if no type is defined http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema/Validate.php?r1=1.5&r2=1.6&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema/Validate.php diff -u pear/MDB2_Schema/MDB2/Schema/Validate.php:1.5 pear/MDB2_Schema/MDB2/Schema/Validate.php:1.6 --- pear/MDB2_Schema/MDB2/Schema/Validate.php:1.5 Tue Aug 15 21:44:30 2006 +++ pear/MDB2_Schema/MDB2/Schema/Validate.php Tue Aug 15 21:58:00 2006 @@ -43,7 +43,7 @@ // | Author: Igor Feghali <ifeghali@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Validate.php,v 1.5 2006/08/15 21:44:30 lsmith Exp $ +// $Id: Validate.php,v 1.6 2006/08/15 21:58:00 lsmith Exp $ // /** @@ -191,7 +191,7 @@ } /* Type check */ if (empty($schema->field['type'])) { - $schema->raiseError('no field type specified', null, $xp); + return $schema->raiseError('no field type specified', null, $xp); } if (!empty($schema->valid_types) && !array_key_exists($schema->field['type'], $schema->valid_types)) { $schema->raiseError('no valid field type ("'.$schema->field['type'].'") specified', null, $xp);

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