Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
🔧 fixed really silly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenfin committed Jul 4, 2018
1 parent 4ba2ab3 commit ad39852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions upload/admin/controller/extension/module/foc_auto_meta.php
Expand Up @@ -76,10 +76,9 @@ public function index () {

if ($this->request->server['REQUEST_METHOD'] == 'POST') {
$post = $this->request->post;

if (isset($post['foc_auto_meta'])) {
foreach ($post['foc_auto_meta'] as $lang_id => $data) {
foreach ($data as $key => $value) {
foreach ($post['foc_auto_meta'] as $lang_id => $meta_data) {
foreach ($meta_data as $key => $value) {
$data['fam_settings'][$lang_id][$key] = $value;
}
}
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/extension/module/foc_auto_meta.php
Expand Up @@ -57,7 +57,7 @@ public function getSettings () {

public function saveSettings ($settings) {
$this->load->model('setting/setting');
$settings = array_replace($this->defaultSettings(), $settings);
$settings = array_replace_recursive($this->defaultSettings(), $settings);
$this->model_setting_setting->editSettingValue(self::SETTINGS_GROUP, self::SETTINGS_GROUP_KEY, $settings);
}
}

0 comments on commit ad39852

Please sign in to comment.