diff --git a/scripts/lang_functions.php b/scripts/lang_functions.php index 56158a469..af1e2ab3b 100644 --- a/scripts/lang_functions.php +++ b/scripts/lang_functions.php @@ -316,7 +316,7 @@ function save_key($key, $value, $path) { $file = file_get_contents($filePath); $file = (array) json_decode($file); $value = html_entity_decode($value); - if ($file[$key] != $value) { + if (!isset($file[$key]) || $file[$key] != $value) { $file[$key] = $value; ksort($file); file_put_contents($filePath, str_replace('\/', '/', json_encode($file, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)));