return nothing from set scene if none of the devices return anything

git-svn-id: https://svn.fhem.de/fhem/trunk@3210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2013-05-22 20:23:31 +00:00
parent 66680502ce
commit 14fe014e54

View File

@@ -233,7 +233,8 @@ LightScene_Set($@)
} elsif ( $cmd eq "scene" ) {
$hash->{STATE} = $scene;
$ret .= " ". CommandSet(undef,"$d $hash->{SCENES}{$scene}{$d}");
$ret .= " " if( $ret );
$ret .= CommandSet(undef,"$d $hash->{SCENES}{$scene}{$d}");
} else {
$ret = "Unknown argument $cmd, choose one of save scene";
}