2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

48_MieleAtHome: v2.1.1 - fix warning

git-svn-id: https://svn.fhem.de/fhem/trunk@27904 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
choenig 2023-08-27 08:10:06 +00:00
parent 256f4a3166
commit 77fed83fd6
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 48_MieleAtHome: fix warning
- feature: configDB.pm: show version counter in "configDB saved. (xx)"
- feature: 93_DbLog: possible use of alternative tables for SVG Plots
Forum:134547, fix warnings

View File

@ -35,7 +35,7 @@ use Encode qw(encode_utf8);
use List::Util qw[min max];
use JSON;
my $version = "2.1.0";
my $version = "2.1.1";
my $MAH_hasMimeBase64 = 1;
@ -1645,7 +1645,8 @@ sub MAH_calculateETA($$$)
sub MAH_formatTime(@)
{
my ($hour, $minute) = @_;
return sprintf("%d:%02d", $hour, $minute);
return sprintf("%d:%02d", defined($hour) ? $hour : 0,
defined($minute) ? $minute : 0);
}
#------------------------------------------------------------------------------------------------------