From e869a83340f2e16028916cbeb39b831b6fabef5b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 31 Aug 2011 14:54:50 +0000 Subject: allow blanks before schema --- it_pipe.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_pipe.class b/it_pipe.class index 34ab74d..c7ef023 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -147,7 +147,7 @@ function csv() { $counts = count_chars($this->lines[0]); $splitchar = $counts[ord("\t")] ? "\t" : ($counts[ord(";")] > $counts[ord(",")] ? ";" : ","); - $schema = str_getcsv(trim(array_shift($this->lines), "#\n"), $splitchar, '"'); # could do a function_exists('str_getcsv') here... + $schema = str_getcsv(trim(array_shift($this->lines), "#\n "), $splitchar, '"'); # could do a function_exists('str_getcsv') here... $oldlocale = setlocale(LC_CTYPE, 'de_CH.iso-8859-1'); -- cgit v1.2.3