diff --git a/FHEM/99_SUNRISE_EL.pm b/FHEM/99_SUNRISE_EL.pm index a5fa35cc5..5ef200665 100755 --- a/FHEM/99_SUNRISE_EL.pm +++ b/FHEM/99_SUNRISE_EL.pm @@ -57,7 +57,7 @@ sr_alt($$$$$$$) my $rise=shift; my $isrel=shift; my $daycheck=shift; - my $altit=$_[0]; + my $altit = defined($_[0]) ? $_[0] : ""; if(exists $alti{uc($altit)}) { $altit=$alti{uc($altit)}; shift;