From 13c8b0115460db8c454fe82ecc76f0366c2af243 Mon Sep 17 00:00:00 2001 From: pest <> Date: Sat, 3 Feb 2007 20:35:44 +0000 Subject: [PATCH] The line at +*00:15:00 set FHZ time lead to the error message in the log: --------- Use of uninitialized value in concatenation (.) or string at /usr/local/bin/fhem.pl line 862, line 281. 2007.02.03 21:26:13 1: +, *, , 00:15:00 --------- Moved "Log" line after setting undefined variables. git-svn-id: https://svn.fhem.de/fhem/trunk@8 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index eeba12403..1da13ee22 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -859,10 +859,11 @@ CommandAt($$) my ($err, $hr, $min, $sec, $fn) = GetTimeSpec($tspec); return $err if($err); -Log 1, "$rel, $rep, $cnt, $tspec"; $rel = "" if(!defined($rel)); $rep = "" if(!defined($rep)); $cnt = "" if(!defined($cnt)); + Log 1, "$rel, $rep, $cnt, $tspec"; + my $ot = time; my @lt = localtime($ot); my $nt = $ot;