Newer perl versions have problem with split without arg

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1164 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-01-02 22:31:40 +00:00
parent 9c7d822b74
commit b238063f2e

View File

@@ -41,6 +41,8 @@ CommandUpdatefhem($$)
my @commandchain = split(/ +/,$param);
# Check if the first parameter is "backup"
if($param) {
my @commandchain = split(/ +/,$param);
if(uc($commandchain[0]) eq "BACKUP") {
my $backupdir = AttrVal("global", "backupdir", "/tmp/FHEM_Backup");
# create the backupfolder
@@ -71,6 +73,7 @@ CommandUpdatefhem($$)
$param = $commandchain[1];
}
}
}
# Read in the OLD filetimes.txt
my %oldtime;