diff --git a/classes/Config.php b/classes/Config.php index 4587082..8105200 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -177,7 +177,9 @@ class Config { $keys = array_keys($this->genericFormats); $keys[array_search($oldFormat, $keys)] = $newFormat; - $this->genericFormats = array_combine($keys, $this->genericFormats); + if ($genericFormats = array_combine($keys, $this->genericFormats)) { + $this->genericFormats = $genericFormats; + } } /**