do not modify if value is the same

This commit is contained in:
Roland Gruber 2016-09-02 11:07:15 +02:00
parent e3901f434e
commit d0df311595
1 changed files with 2 additions and 2 deletions

View File

@ -1558,10 +1558,10 @@ abstract class baseModule {
$container['messages'][] = $this->messages[$name][0];
}
else {
if (isset($attributes[$name])) {
if (isset($attributes[$name]) && ($attributes[$name][0] != $_POST[$fieldName])) {
$container['mod'][$name] = array($_POST[$fieldName]);
}
else {
elseif (!isset($attributes[$name])) {
$container['add'][$name] = array($_POST[$fieldName]);
}
}