From d459fcc29fa33ff21922b0ca28e8cf13b8369b4f Mon Sep 17 00:00:00 2001 From: nasseeder1 <> Date: Sun, 4 Sep 2016 07:45:22 +0000 Subject: [PATCH] 93__DbRep: error in diffValue if no value was selected git-svn-id: https://svn.fhem.de/fhem/trunk@12113 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/93_DbRep.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 3bb3265e7..064172372 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 93__DbRep: error in diffValue if no value was selected - feature 93_DbRep: exportToFile to CSV-format, Reading "errortext" added - feature: 73_GasCalculator: System readings are hidden now - feature: 73_ElectricityCalculator: System readings are hidden now diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index ac763afb6..962f35fff 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -37,6 +37,7 @@ ########################################################################################################### # Versions History: # +# 3.7.2 04.09.2016 problem in diffValue fixed if if no value was selected # 3.7.1 31.08.2016 Reading "errortext" added, commandref continued, exportToFile changed, # diffValue changed to fix wrong timestamp if error occur # 3.7 30.08.2016 exportToFile added @@ -1383,7 +1384,7 @@ sub diffval_ParseDone($) { my $runtime_string = decode_base64($a[0]); $lastruntimestring = $runtime_string if ($i == 1); - my $value = $a[3]; + my $value = $a[3]?$a[3]:0; $a[3] =~ s/:/-/g if($a[2]); # substituieren unsopported characters -> siehe fhem.pl my $timestamp = $a[2]?$a[1]."_".$a[2]:$a[1];