Skip to content

Commit beaf51e

Browse files
filelisting fix
1 parent 94fb00c commit beaf51e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

omim/omim.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Run()
4747
if(parent::getParameterValue('omim_api_key') == '') {
4848
$key_file = parent::getParameterValue('omim_api_key_file');
4949
if(file_exists($key_file)) {
50-
$key = file_get_contents($key_file);
50+
$key = trim(file_get_contents($key_file));
5151
if($key) {
5252
parent::setParameterValue('omim_api_key', $key);
5353
} else {
@@ -199,8 +199,9 @@ function getListOfEntries($ldir)
199199
}
200200

201201
// download
202+
ftp_pasv($ftp, true);
202203
echo "Downloading $file ...";
203-
if(ftp_get($ftp, $ldir.$file, 'omim/'.$file, FTP_BINARY) === FALSE) {
204+
if(ftp_get($ftp, $ldir.$file, 'OMIM/'.$file, FTP_BINARY) === FALSE) {
204205
trigger_error("Error in downloading $file");
205206
continue;
206207
}

0 commit comments

Comments
 (0)