mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
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:
parent
6a645504d0
commit
6b22a61db5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user