summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-02 17:26:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-02 17:26:53 +0200
commit2bb64f91d3dc628728bb9de3a9c3888462f66eb2 (patch)
treec3b6266f272b4d5c1ec788da533bd758aab28939
parent330fe60c0af78859c966da15d1c39c1b173b1217 (diff)
Fix "Uninitialized value in split" for stations without meta tags
-rw-r--r--lib/Travel/Status/DE/IRIS.pm2
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;