mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 20:06:18 +00:00
01_FHEMWEB.pm: fix WARNING in detail view (Forum #119372)
git-svn-id: https://svn.fhem.de/fhem/trunk@23907 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b8ba5f94be
commit
41ac56709d
@ -1442,8 +1442,8 @@ FW_detailSelect(@)
|
|||||||
my ($d, $cmd, $list, $param, $typeHash) = @_;
|
my ($d, $cmd, $list, $param, $typeHash) = @_;
|
||||||
return "" if(!$list || $FW_hiddenroom{input});
|
return "" if(!$list || $FW_hiddenroom{input});
|
||||||
my @al = sort {
|
my @al = sort {
|
||||||
my $ta = $typeHash->{$a} ? $typeHash->{$a}.$a : $a;
|
my $ta = $typeHash && $typeHash->{$a} ? $typeHash->{$a}.$a : $a;
|
||||||
my $tb = $typeHash->{$b} ? $typeHash->{$b}.$b : $b;
|
my $tb = $typeHash && $typeHash->{$b} ? $typeHash->{$b}.$b : $b;
|
||||||
$ta cmp $tb;
|
$ta cmp $tb;
|
||||||
} map { s/:.*//; $_ } split(" ", $list);
|
} map { s/:.*//; $_ } split(" ", $list);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user