cvs: pear /File_MARC MARC.php

From: Date: Fri, 23 Mar 2007 18:19:58 +0000
Subject: cvs: pear /File_MARC MARC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-45392@lists.php.net to get a copy of this message
dbs Fri Mar 23 18:19:58 2007 UTC Modified files: /pear/File_MARC MARC.php Log: Move another exception (empty subfield) to a warning http://cvs.php.net/viewvc.cgi/pear/File_MARC/MARC.php?r1=1.4&r2=1.5&diff_format=u Index: pear/File_MARC/MARC.php diff -u pear/File_MARC/MARC.php:1.4 pear/File_MARC/MARC.php:1.5 --- pear/File_MARC/MARC.php:1.4 Tue Mar 20 03:03:08 2007 +++ pear/File_MARC/MARC.php Fri Mar 23 18:19:58 2007 @@ -32,7 +32,7 @@ * @author Dan Scott <dscott@laurentian.ca> * @copyright 2003-2006 Oy Realnode Ab, Dan Scott * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: MARC.php,v 1.4 2007/03/20 03:03:08 dbs Exp $ + * @version CVS: $Id: MARC.php,v 1.5 2007/03/23 18:19:58 dbs Exp $ * @link http://pear.php.net/package/File_MARC * @example read.php Retrieve specific fields and subfields from a record * @example subfields.php Create new subfields and add them in specific order @@ -362,7 +362,7 @@ if (!isset($subfield_data)) { $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_EMPTY_SUBFIELD], array("tag" => $tag)); - throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_EMPTY_SUBFIELD); + $marc->addWarning($errorMessage); } $marc->appendField(new File_MARC_Data_Field($tag, $subfield_data, $ind1, $ind2));

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