Fix working_plan_exceptions inconsistency when empty

This commit is contained in:
popod 2022-12-03 17:17:40 +01:00 committed by GitHub
parent 30c55a4666
commit e53683863d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -507,7 +507,7 @@ class Providers_model extends EA_Model {
krsort($value); krsort($value);
$value = json_encode($value); $value = json_encode(empty($value) ? new stdClass() : $value);
} }
$this->set_setting($provider_id, $name, $value); $this->set_setting($provider_id, $name, $value);