mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_JsonMod.pm: feature: use concat in single() mit multiple jsonPath()
git-svn-id: https://svn.fhem.de/fhem/trunk@21596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
638afd270a
commit
001cbf1bd7
@ -305,10 +305,10 @@ sub JsonMod_DoReadings {
|
||||
foreach my $arg (@args) {
|
||||
if (ref($arg) eq 'CODE') {
|
||||
$result .= $arg->($o);
|
||||
} elsif (ref($arg) eq '') {
|
||||
$result .= $arg;
|
||||
} elsif (ref($arg) eq 'ARRAY' and @{$arg}) {
|
||||
$result .= $arg->[0];
|
||||
} else {
|
||||
die('syntax');
|
||||
$result .= $arg;
|
||||
};
|
||||
};
|
||||
return $result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user