mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
179084a4bb
commit
012ed47247
@ -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
|
||||
#############################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user