mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 17:52:16 +00:00
return Empty array when no favs
This commit is contained in:
parent
3a6d2d8a2a
commit
794901847d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user