Skip to content

Commit

Permalink
fix(config): fix value comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
charleneauger committed Jul 2, 2024
1 parent 1eec819 commit d0d774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/main_sections/ms_config/ms_custom_param.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if (isset($list_hardware_id) || isset($tab_hadware_id)) {
foreach ($protectedPost as $key => $value) {
if ($key != "systemid" && $key != "origine") {
if ($value == "SERVER DEFAULT" || $value == "des" || trim($value) == "" || $value == 0) {
if ($value == "SERVER DEFAULT" || $value == "des" || trim($value) == "" || strval($value) == "0") {
erase($key);
} elseif ($value == "CUSTOM") {
insert($key, $protectedPost[$key . '_edit']);
Expand Down

0 comments on commit d0d774a

Please sign in to comment.