mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_configdb.pm: #111052 (show red question mark)
git-svn-id: https://svn.fhem.de/fhem/trunk@21917 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b7235cba9d
commit
36e429c9ad
@ -51,18 +51,13 @@ sub CommandConfigdb {
|
||||
# delete attribute
|
||||
delete $configDB{attr}{$param1};
|
||||
$ret = " attribute $param1 deleted";
|
||||
shift @structChangeHist
|
||||
if(@structChangeHist > AttrVal('global', 'maxChangeLog', 10) - 1);
|
||||
push @structChangeHist, "configdb attr $param1 (deleted)";
|
||||
addStructChange('configDB attr','configDB',"$param1 (deleted)");
|
||||
addStructChange('configdb attr',undef,"$param1 (deleted)");
|
||||
|
||||
} else {
|
||||
# set attribute
|
||||
$configDB{attr}{$param1} = $param2;
|
||||
$ret = " attribute $param1 set to value $param2";
|
||||
shift @structChangeHist
|
||||
if(@structChangeHist > AttrVal('global', 'maxChangeLog', 10) - 1);
|
||||
push @structChangeHist, "configdb attr $param1 $param2 (set)";
|
||||
addStructChange('configdb attr',undef,"$param1 $param2 (set)";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user