settings_php_set: Fix wrong variable name

This commit is contained in:
Tom Wiesing 2022-09-11 18:01:31 +02:00
parent 076adfa54d
commit 8b7fe41309
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ chmod u+w web/sites/default/settings.php
// decode json values // decode json values
$value = @json_decode($jvalue); $value = @json_decode($jvalue);
if ($data === null && json_last_error() !== JSON_ERROR_NONE) { if ($value === null && json_last_error() !== JSON_ERROR_NONE) {
echo "Invalid JSON, cannot update settings.php. \n"; echo "Invalid JSON, cannot update settings.php. \n";
return 1; return 1;
} }