When comparing config values, use strict string comparison

This commit is contained in:
Matthew Exon 2021-05-01 21:46:21 +02:00
parent 4858993024
commit 18762c8e6e

View File

@ -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.");
}