fix: Make sure array_combine returns an array
This commit is contained in:
parent
c232522429
commit
dcf65cadb0
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue