From dcf65cadb0601297ea477332d5db82764679f33a Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 17 Jun 2019 23:19:18 +0200 Subject: [PATCH] fix: Make sure array_combine returns an array --- classes/Config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } /**