Skip to content

Commit eef00f8

Browse files
author
Eugene Manuilov
committed
Fixed remote CSV uploading issue for cases when types are not mentioned in a CSV file.
1 parent 56bc69d commit eef00f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Source/Csv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function _fetchSeries( &$handle ) {
7575
if ( !self::_validateTypes( $types ) ) {
7676
// re open the file
7777
fclose( $handle );
78-
$handle = fopen( $this->_filename, 'rb' );
78+
$handle = $this->_get_file_handle();
7979

8080
// re read the labels and empty types array
8181
$labels = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE );

0 commit comments

Comments
 (0)