Skip to content

Commit 94e91e2

Browse files
Merge pull request #427 from zorino/release3
edit clinicaltrials.php to trigger empty files
2 parents 91622ac + 404cc3a commit 94e91e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clinicaltrials/clinicaltrials.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,12 @@ function parse_dir(){
174174
if($i % 10000 == 0) {parent::clear();}
175175
$trial_id = basename($file,'.xml');
176176
if(parent::getParameterValue('id_list') == '' || in_array($trial_id, $ids)) {
177-
echo "Processing $trial_id".PHP_EOL;
178-
$this->process_file($file);
177+
if(filesize($file)!=0) {
178+
echo "Processing $trial_id".PHP_EOL;
179+
$this->process_file($file);
180+
} else{
181+
echo "Processing $trial_id -> Empty!".PHP_EOL;
182+
}
179183
}
180184
}
181185
echo "Finished.".PHP_EOL;

0 commit comments

Comments
 (0)