RESIDENTStk: fix array

git-svn-id: https://svn.fhem.de/fhem/trunk@13851 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2017-03-29 20:55:15 +00:00
parent 8e32ce66b6
commit 3227b3d07a

View File

@@ -1671,7 +1671,7 @@ sub RESIDENTStk_sec2time($) {
sub RESIDENTStk_time2sec($) {
my ($s) = @_;
my @time = split /:/, $s;
my @t = split /:/, $s;
$t[2] = 0 unless ( $t[2] );
return $t[0] * 3600 + $t[1] * 60 + $t[2];