57_SSCal: contrib 1.5.0

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21097 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-02-02 21:01:54 +00:00
parent 179084a4bb
commit 012ed47247

View File

@ -2171,6 +2171,7 @@ sub SSCal_writeValuesToArray ($$$$$$$$$$$) {
push(@row_array, $bts+$n." 09_Timezone " .$tz."\n") if($tz);
foreach my $p (keys %{$vh}) {
$vh->{$p} = SSCal_jboolmap($vh->{$p});
$vh->{$p} = "" if(!defined $vh->{$p});
next if($vh->{$p} eq "");
@ -3117,6 +3118,19 @@ sub SSCal_setVersionInfo($) {
return;
}
###############################################################################
# JSON Boolean Test und Mapping
###############################################################################
sub SSCal_jboolmap($){
my ($bool)= @_;
if(JSON::is_bool($bool)) {
$bool = $bool?1:0;
}
return $bool;
}
#############################################################################################
# Kalenderliste als HTML-Tabelle zurückgeben
#############################################################################################