55_GDS.pm: code cleanup

git-svn-id: https://svn.fhem.de/fhem/trunk@9298 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2015-09-24 20:57:33 +00:00
parent e074f77623
commit 48c9e3d9da

View File

@@ -1,4 +1,4 @@
# $Id: 55_GDS.pm 8677 2015-06-01 17:11:36Z betateilchen $
# $Id: 55_GDS.pm 9289 2015-09-23 05:07:02Z betateilchen $
####################################################################################################
#
# 55_GDS.pm
@@ -1024,9 +1024,9 @@ sub getListStationsDropdown($){
my $name = $hash->{NAME};
my ($line, $liste, @a);
my $filename = $tempDir.$name."_conditions";
my $filesize = -s $filename;
return unless $filesize != 0;
my $filename = $tempDir.$name."_conditions";
my $filesize = -s $filename;
return unless $filesize != 0;
open WXDATA, $filename;
while (chomp($line = <WXDATA>)) {
@@ -1332,6 +1332,8 @@ sub gdsHeadlines($;$) {
#
# 2015-04-07 fixed a_X_valid calculation: use onset, too
#
# 2015-09-24 fixed prevent fhem crash on empty conditions file
#
####################################################################################################
#
# Further informations