mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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) = @_;
|
||||
return "" if(!$list || $FW_hiddenroom{input});
|
||||
my @al = sort {
|
||||
my $ta = $typeHash->{$a} ? $typeHash->{$a}.$a : $a;
|
||||
my $tb = $typeHash->{$b} ? $typeHash->{$b}.$b : $b;
|
||||
my $ta = $typeHash && $typeHash->{$a} ? $typeHash->{$a}.$a : $a;
|
||||
my $tb = $typeHash && $typeHash->{$b} ? $typeHash->{$b}.$b : $b;
|
||||
$ta cmp $tb;
|
||||
} map { s/:.*//; $_ } split(" ", $list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user