1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-07 22:29:19 +00:00

33_readingsGroup.pm: fix for valueFormat == 0

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-01-02 10:55:09 +00:00
parent 3df5f6dc3a
commit d6e2a1fd5c

View File

@ -712,7 +712,7 @@ readingsGroup_2html($;$)
next if( !defined($value_format) );
if( $value_format =~ m/%/ ) {
$v = sprintf( $value_format, $v );
} elsif( $value_format ) {
} elsif( $value_format != "" ) {
$v = $value_format;
}
@ -1015,7 +1015,7 @@ readingsGroup_Notify($$)
$value = "";
} elsif( $value_format =~ m/%/ ) {
$value = sprintf( $value_format, $value );
} elsif( $value_format ) {
} elsif( $value_format != "" ) {
$value = $value_format;
}
}