DoorPi.pm: Neue Version
git-svn-id: https://svn.fhem.de/fhem/trunk@12474 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -41,7 +41,7 @@ use vars qw{%attr %defs};
|
|||||||
sub Log($$);
|
sub Log($$);
|
||||||
|
|
||||||
#-- globals on start
|
#-- globals on start
|
||||||
my $version = "1.41";
|
my $version = "1.42";
|
||||||
|
|
||||||
#-- these we may get on request
|
#-- these we may get on request
|
||||||
my %gets = (
|
my %gets = (
|
||||||
@@ -763,12 +763,12 @@ sub DoorPi_GetHistory {
|
|||||||
#-- decode call history
|
#-- decode call history
|
||||||
if(ref($jhash0->{"history_event"}) ne 'ARRAY'){
|
if(ref($jhash0->{"history_event"}) ne 'ARRAY'){
|
||||||
my $mga="Warning - has found an empty event history";
|
my $mga="Warning - has found an empty event history";
|
||||||
Log 1,"[DoorPi_GetHistory] ".$mga
|
Log 1,"[DoorPi_GetHistory] ".$mga;
|
||||||
return $mga
|
return $mga
|
||||||
}
|
}
|
||||||
if(ref($khash0->{"history_snapshot"}) ne 'ARRAY'){
|
if(ref($khash0->{"history_snapshot"}) ne 'ARRAY'){
|
||||||
my $mga="Warning - has found an empty snapshot history";
|
my $mga="Warning - has found an empty snapshot history";
|
||||||
Log 1,"[DoorPi_GetHistory] ".$mga
|
Log 1,"[DoorPi_GetHistory] ".$mga;
|
||||||
return $mga
|
return $mga
|
||||||
}
|
}
|
||||||
my @history_event = ($jhash0)?@{$jhash0->{"history_event"}}:();
|
my @history_event = ($jhash0)?@{$jhash0->{"history_event"}}:();
|
||||||
|
|||||||
Reference in New Issue
Block a user