diff --git a/module/custom/model.php b/module/custom/model.php index 1e273478a5..79b0de8cc0 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -64,7 +64,7 @@ class customModel extends model for($i = 0; $i <= $sectionIndex; $i ++) { $sectionKey = $sections[$i]; - $oldSectionArr = $oldSectionArr[$sectionKey]; + $oldSectionArr = isset($oldSectionArr[$sectionKey]) ? $oldSectionArr[$sectionKey] : array(); } $sectionArr = array_merge($oldSectionArr, $sectionArr); } diff --git a/module/dev/control.php b/module/dev/control.php index 315881e84e..74b3091f51 100644 --- a/module/dev/control.php +++ b/module/dev/control.php @@ -128,7 +128,7 @@ class dev extends control if($this->server->request_method == 'POST') { - $this->dev->saveCustomedLang($common, $moduleName, $method, $language); + $this->dev->saveCustomedLang($type, $moduleName, $method, $language); return $this->send(array('result' => 'success', 'locate' => 'reload', 'message' => $this->lang->saveSuccess)); }