return Empty array when no favs

This commit is contained in:
int2001 2023-08-19 05:02:50 +00:00
parent 3a6d2d8a2a
commit 794901847d
No known key found for this signature in database
GPG Key ID: DFB1C13CD2DB037B

View File

@ -27,6 +27,7 @@ class User_Options extends CI_Controller {
public function get_fav() {
$result=$this->user_options_model->get_options('Favourite');
$jsonout=[];
foreach($result->result() as $options) {
$jsonout[$options->option_name][$options->option_key]=$options->option_value;
}