diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-05-02 17:26:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-05-02 17:26:53 +0200 |
commit | 2bb64f91d3dc628728bb9de3a9c3888462f66eb2 (patch) | |
tree | c3b6266f272b4d5c1ec788da533bd758aab28939 /lib/Travel/Status | |
parent | 330fe60c0af78859c966da15d1c39c1b173b1217 (diff) |
Fix "Uninitialized value in split" for stations without meta tags
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/IRIS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm index 49dc01a..269ea6e 100644 --- a/lib/Travel/Status/DE/IRIS.pm +++ b/lib/Travel/Status/DE/IRIS.pm @@ -217,7 +217,7 @@ sub get_station { printf( " -> %s (%s / %s)\n", @{ $ret[-1] }{qw{name uic ds100}} ); } - if ( $opt{recursive} ) { + if ( $opt{recursive} and defined $station_node->getAttribute('meta') ) { my @refs = uniq( split( m{ \| }x, $station_node->getAttribute('meta') ) ); @refs = grep { not( $_ ~~ \@seen or $_ ~~ \@queue ) } @refs; |