svn: /pear/packages/File_IMC/trunk/File/IMC/Build/ Vcard.php

From: Date: Fri, 18 Mar 2011 17:05:46 +0000
Subject: svn: /pear/packages/File_IMC/trunk/File/IMC/Build/ Vcard.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-61457@lists.php.net to get a copy of this message
till Fri, 18 Mar 2011 17:05:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309397 Log: * fix notice, #18375 Bug: http://pear.php.net/bugs/18375 (unknown) Changed paths: U pear/packages/File_IMC/trunk/File/IMC/Build/Vcard.php Modified: pear/packages/File_IMC/trunk/File/IMC/Build/Vcard.php =================================================================== --- pear/packages/File_IMC/trunk/File/IMC/Build/Vcard.php 2011-03-18 16:46:19 UTC (rev 309396) +++ pear/packages/File_IMC/trunk/File/IMC/Build/Vcard.php 2011-03-18 17:05:46 UTC (rev 309397) @@ -1152,8 +1152,12 @@ public function addEmail($text) { $this->autoparam = 'EMAIL'; - $iter = count($this->value['EMAIL']); + $iter = 0; + if (array_key_exists('EMAIL', $this->value)) { + $iter = count($this->value['EMAIL']); + } + $this->setValue('EMAIL', $iter, 0, $text); return $this;

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