File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -718,11 +718,12 @@ function process_file($entry) {
718
718
# location of facility doing the testing
719
719
##############################################################
720
720
try {
721
- $ location = @ array_shift ( $ root ->xpath ('//location ' ) );
722
- if ( $ location ){
721
+ $ locations = $ root ->xpath ('//location ' );
722
+ foreach ( $ locations AS $ location ) {
723
723
$ location_uri = parent ::getRes ().md5 ($ location ->asXML ());
724
- $ name = $ this ->getString ('//facility/name ' ,$ location );
725
- $ address = @array_shift ($ location ->xpath ('//facility/address ' ));
724
+ $ facility = $ location ->facility ;
725
+ $ name = $ facility ->name [0 ];
726
+ $ address = $ facility ->address ;//@array_shift($location->xpath('//facility/address'));
726
727
$ contact = @array_shift ($ location ->xpath ('//contact ' ));
727
728
$ backups = @array_shift ($ location ->xpath ('//contact_backup ' ));
728
729
$ investigators = @array_shift ($ location ->xpath ('//investigator ' ));
You can’t perform that action at this time.
0 commit comments