From 9e324bd84e81eb7244ff5ab098216762c526c8e3 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 19 Apr 2025 09:48:41 +0200 Subject: [PATCH] fixed little bug --- application/controllers/Satellite.php | 1 - application/models/User_options_model.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Satellite.php b/application/controllers/Satellite.php index eaac5c4d1..39d2eb806 100644 --- a/application/controllers/Satellite.php +++ b/application/controllers/Satellite.php @@ -315,7 +315,6 @@ class Satellite extends CI_Controller { $msg['ok'] = 'Error'; $msg['message'] = __("Failed to save pass settings!"); } else { - echo json_encode(array('ok' => 'OK', 'message' => __("Pass settings saved!"))); $msg['ok'] = 'OK'; $msg['message'] = __("Pass settings saved!"); } diff --git a/application/models/User_options_model.php b/application/models/User_options_model.php index cf527fd42..d69094d5c 100644 --- a/application/models/User_options_model.php +++ b/application/models/User_options_model.php @@ -14,6 +14,7 @@ class User_options_model extends CI_Model { foreach($option_array as $option_key => $option_value) { $query = $this->db->query($sql, array($uid, $option_type, $option_name, $option_key, $option_value, $option_value)); } + return $query; } public function set_option_at_all_users($option_type, $option_name, $option_array) {