cvs: pear /Contact_Vcard_Parse Contact_Vcard_Parse.php

From: Date: Sun, 24 Jul 2005 17:00:20 +0000
Subject: cvs: pear /Contact_Vcard_Parse Contact_Vcard_Parse.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33268@lists.php.net to get a copy of this message
pmjones Sun Jul 24 13:00:20 2005 EDT Modified files: /pear/Contact_Vcard_Parse Contact_Vcard_Parse.php Log: fixed bug 4829, undefined offset when getting parameter values http://cvs.php.net/diff.php/pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php?r1=1.5&r2=1.6&ty=u Index: pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php diff -u pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.5 pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.6 --- pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.5 Tue May 31 12:55:58 2005 +++ pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php Sun Jul 24 13:00:18 2005 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Contact_Vcard_Parse.php,v 1.5 2005/05/31 16:55:58 pmjones Exp $ +// $Id: Contact_Vcard_Parse.php,v 1.6 2005/07/24 17:00:18 pmjones Exp $ /** @@ -50,7 +50,7 @@ * * @package Contact_Vcard_Parse * -* @version 1.31 +* @version 1.32 * */ @@ -552,7 +552,11 @@ $name = $this->_getParamName($key); // list of all parameter values - $listall = trim($tmp[1]); + if (isset($tmp[1])) { + $listall = trim($tmp[1]); + } else { + $listall = ''; + } // if there is a value-list for this parameter, they are // separated by commas, so split them out too.

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