sforkowany z mirror/friendica
When comparing config values, use strict string comparison
rodzic
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.");
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue