2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

98_SVG.pm: fix warning for the 10year patch (Forum #85687)

git-svn-id: https://svn.fhem.de/fhem/trunk@16402 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-03-13 21:14:22 +00:00
parent c5ca57af7e
commit de1c1d97dd

View File

@ -2331,6 +2331,7 @@ SVG_fmtTime($$)
my @tarr = split("[ :]+", localtime($sec)); my @tarr = split("[ :]+", localtime($sec));
my ($sep, $fmt) = split(" ", $sepfmt, 2); my ($sep, $fmt) = split(" ", $sepfmt, 2);
my $ret = ""; my $ret = "";
$fmt = "" if(!defined($fmt));
for my $f (split(" ", $fmt)) { for my $f (split(" ", $fmt)) {
$ret .= $sep if($ret); $ret .= $sep if($ret);
$ret .= $tarr[$f]; $ret .= $tarr[$f];