When comparing config values, use strict string comparison
This commit is contained in:
parent
4858993024
commit
18762c8e6e
|
@ -128,7 +128,7 @@ HELP;
|
|||
throw new RuntimeException("$cat.$key is an array and can't be set using this command.");
|
||||
}
|
||||
|
||||
if ($this->config->get($cat, $key) == $value) {
|
||||
if ($this->config->get($cat, $key) === $value) {
|
||||
throw new RuntimeException("$cat.$key already set to $value.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user