mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
fixed: warnings
git-svn-id: https://svn.fhem.de/fhem/trunk@7801 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cf2c74fc0d
commit
b420c5b572
@ -3297,8 +3297,14 @@ SYSMON_Exec_Local($$)
|
|||||||
}
|
}
|
||||||
# Einzeiler als normale Scalars
|
# Einzeiler als normale Scalars
|
||||||
my $line = $result[0];
|
my $line = $result[0];
|
||||||
chomp $line;
|
|
||||||
SYSMON_Log ($hash, 5, "Result '$line'");
|
if(defined($line)) {
|
||||||
|
chomp $line;
|
||||||
|
SYSMON_Log ($hash, 5, "Result '$line'");
|
||||||
|
} else {
|
||||||
|
SYSMON_Log ($hash, 5, "Result undef");
|
||||||
|
}
|
||||||
|
|
||||||
return $line;
|
return $line;
|
||||||
|
|
||||||
#chomp $result;
|
#chomp $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user