2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fixed uninitialized values, added binmode to update

git-svn-id: https://svn.fhem.de/fhem/trunk@2619 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mfr69bs 2013-01-31 20:06:55 +00:00
parent 2782e09561
commit 46b12dd03d
3 changed files with 14 additions and 5 deletions

View File

@ -500,7 +500,7 @@ notice_Confirmation($$$)
my ($noticeDir,$id,$confirmation) = @_;
my @file;
my $confirmed = 0;
my $oldConfirmation;
my $oldConfirmation = "";
my $dateTime;
my $now = TimeNow();
my $ret;

View File

@ -150,10 +150,18 @@ update_CheckNotice($)
my $moddir = "$modpath/FHEM";
my $noticeDir = "$moddir/FhemUtils";
my $ret;
my $result;
my @published = split(",",AnalyzeCommandChain(undef, "notice get update 6"));
my @unconfirmed = split(",",AnalyzeCommandChain(undef, "notice get update 7"));
my @confirmed = split(",",AnalyzeCommandChain(undef, "notice get update 8"));
my @published;
my @unconfirmed;
my @confirmed;
$result = AnalyzeCommandChain(undef, "notice get update 6");
@published = split(",",$result) if($result);
$result = AnalyzeCommandChain(undef, "notice get update 7");
@unconfirmed = split(",",$result) if($result);
$result = AnalyzeCommandChain(undef, "notice get update 8");
@confirmed = split(",",$result) if($result);
# remove confirmed from published
my %c;
@ -621,6 +629,7 @@ update_GetRemoteFiles($$$)
next if ($mkdir);
if (open (FH, ">$localFile")) {
binmode FH;
print FH $fileContent;
close (FH);
Log 5, "update write $localFile";

View File

@ -5,7 +5,7 @@
# EXPIRE: 0
# POSITION: before
# KEY_1: sendStatistics
# VAL_1: AttrVal("global","sendStatistics",undef);
# VAL_1: AttrVal("global","sendStatistics","");
# CON_1: !empty
# TITLE_DE: Das FHEM-Projekt moechte Dich um Deine Unterstuetzung bitten!
# NOTICE_DE