2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Utils.pm: better check of time_str2num argument. By Stefan/private mail

git-svn-id: https://svn.fhem.de/fhem/trunk@6660 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-10-03 06:35:43 +00:00
parent 39b6aa7544
commit c9155bc293

View File

@ -17,7 +17,7 @@ time_str2num($)
{
my ($str) = @_;
my @a;
if($str ne "") {
if($str) {
@a = split("[- :]", $str);
return mktime($a[5],$a[4],$a[3],$a[2],$a[1]-1,$a[0]-1900,0,0,-1);
} else {