Skip to content

Commit 404cc3a

Browse files
committed
edit clinicaltrials.php to trigger empty files
Signed-off-by: Maxime Déraspe <[email protected]>
1 parent 91622ac commit 404cc3a

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)