31_LightScene.pm: ignore empty scenes for followDevices

git-svn-id: https://svn.fhem.de/fhem/trunk@7866 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-02-04 11:38:05 +00:00
parent 18d6563023
commit 6cc0ce80a3

View File

@@ -291,7 +291,7 @@ LightScene_Notify($$)
my $matched = 0;
foreach my $scene (sort keys %{ $hash->{SCENES} }) {
$matched = 1;
$matched = (scalar keys %{ $hash->{SCENES}{$scene} } > 0)?1:0;
foreach my $d (sort keys %{ $hash->{SCENES}{$scene} }) {
next if( !defined($hash->{SCENES}{$scene}{$d}));
next if(!$defs{$d});