Skip to content

Commit

Permalink
Fix import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Mar 15, 2024
1 parent 0224377 commit c487897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Controllers/Licenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function parseImportFile() {
}
} elseif ( 'csv' === $ext ) {
$licenseKeys = array();
if ( ( $handle = fopen( DLM_ASSETS_DIR . $tmp_file, 'r' ) ) !== false ) {
if ( ( $handle = fopen( $filePath, 'r' ) ) !== false ) {
while ( ( $data = fgetcsv( $handle, 1000, ',' ) ) !== false ) {
if ( $data && is_array( $data ) && count( $data ) > 0 ) {
$licenseKeys[] = $data[0];
Expand Down

0 comments on commit c487897

Please sign in to comment.