diff --git a/modules/module/module.admin.model.php b/modules/module/module.admin.model.php index 5d704dbc3..c364e9d5f 100644 --- a/modules/module/module.admin.model.php +++ b/modules/module/module.admin.model.php @@ -245,23 +245,6 @@ return $output; } - /** - * @brief Return current lang list - **/ - function getLangListByLangcodeForAutoComplete() - { - $requestVars = Context::getRequestVars(); - - $args->site_srl = (int)$requestVars->site_srl; - $args->page = 1; // /< Page - $args->list_count = 100; // /< the number of posts to display on a single page - $args->page_count = 5; // /< the number of pages that appear in the page navigation - $args->sort_index = 'name'; - $args->order_type = 'asc'; - $args->search_keyword = Context::get('search_keyword'); // /< keyword to search*/ - - return $this->getLangListByLangcode($args); - } function getModuleAdminIPCheck() { $db_info = Context::getDBInfo(); diff --git a/modules/module/module.model.php b/modules/module/module.model.php index 52423f7e5..029731d7b 100644 --- a/modules/module/module.model.php +++ b/modules/module/module.model.php @@ -1495,7 +1495,7 @@ $list = array(); if($output->toBool()){ - foreach($output->data as $code_info){ + foreach((array)$output->data as $code_info){ unset($codeInfo); $codeInfo = array('name'=>'$user_lang->'.$code_info->name, 'value'=>$code_info->value); $list[] = $codeInfo;