We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$currentOpts
1 parent a25774c commit d3a6805Copy full SHA for d3a6805
prestashop8.x/controllers/admin/AdminTawktoController.php
@@ -243,7 +243,9 @@ public function ajaxProcessSetOptions()
243
$currentOpts = Configuration::get($key);
244
if (!empty($currentOpts)) {
245
$currentOpts = json_decode($currentOpts, true);
246
- $jsonOpts = array_merge($currentOpts, $jsonOpts);
+ if (is_array($currentOpts)) {
247
+ $jsonOpts = array_merge($currentOpts, $jsonOpts);
248
+ }
249
}
250
251
Configuration::updateValue($key, json_encode($jsonOpts));
0 commit comments