mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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);
|
push(@row_array, $bts+$n." 09_Timezone " .$tz."\n") if($tz);
|
||||||
|
|
||||||
foreach my $p (keys %{$vh}) {
|
foreach my $p (keys %{$vh}) {
|
||||||
|
$vh->{$p} = SSCal_jboolmap($vh->{$p});
|
||||||
$vh->{$p} = "" if(!defined $vh->{$p});
|
$vh->{$p} = "" if(!defined $vh->{$p});
|
||||||
next if($vh->{$p} eq "");
|
next if($vh->{$p} eq "");
|
||||||
|
|
||||||
@ -3117,6 +3118,19 @@ sub SSCal_setVersionInfo($) {
|
|||||||
return;
|
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
|
# Kalenderliste als HTML-Tabelle zurückgeben
|
||||||
#############################################################################################
|
#############################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user