svn: /pear/packages/File/trunk/File/ CSV.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Thu, 10 Mar 2011 20:24:03 +0000 |
| Subject: | svn: /pear/packages/File/trunk/File/ CSV.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-61387@lists.php.net to get a copy of this message | ||
dufuz Thu, 10 Mar 2011 20:24:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309091
Log:
Make sure we don't let headers through just because header is defined as people can define it
and set it to false.
Changed paths:
U pear/packages/File/trunk/File/CSV.php
Modified: pear/packages/File/trunk/File/CSV.php
===================================================================
--- pear/packages/File/trunk/File/CSV.php 2011-03-10 20:21:32 UTC (rev 309090)
+++ pear/packages/File/trunk/File/CSV.php 2011-03-10 20:24:03 UTC (rev 309091)
@@ -489,7 +489,7 @@
{
static $headers = array();
- if (isset($conf['header']) && empty($headers)) {
+ if (isset($conf['header']) && $conf['header'] == true
&& empty($headers)) {
// read the first row and assign to $headers
$headers = $fields;
return $headers;