From e53683863d920bdd5dad0c5f72771a5c293a1151 Mon Sep 17 00:00:00 2001 From: popod Date: Sat, 3 Dec 2022 17:17:40 +0100 Subject: [PATCH] Fix working_plan_exceptions inconsistency when empty --- application/models/Providers_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Providers_model.php b/application/models/Providers_model.php index c10e3d61..d9283898 100755 --- a/application/models/Providers_model.php +++ b/application/models/Providers_model.php @@ -507,7 +507,7 @@ class Providers_model extends EA_Model { krsort($value); - $value = json_encode($value); + $value = json_encode(empty($value) ? new stdClass() : $value); } $this->set_setting($provider_id, $name, $value);