fhem.pl: chack save parameter (Forum #32986)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7771 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-01-30 07:10:22 +00:00
parent c59f7f7381
commit 7b3c1f8b5a

View File

@@ -1324,7 +1324,7 @@ CommandSave($$)
{
my ($cl, $param) = @_;
if($param eq "?") {
if($param && $param eq "?") {
return "No structural changes." if(!@structChangeHist);
return "Last 10 structural changes:\n ".join("\n ", @structChangeHist);
}