From 2b15b8d3c6f340009809c2e430bddb555b49cca7 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 2 Jan 2019 09:51:06 +0800 Subject: [PATCH] * finish task #5201. --- module/custom/control.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 56f5683645..059ef2d5ec 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -148,12 +148,13 @@ class custom extends control } $this->custom->deleteItems("lang=$lang&module=$module§ion=$field"); - foreach($_POST['keys'] as $index => $key) + $data = fixer::input('post')->get(); + foreach($data->keys as $index => $key) { //if(!$system and (!$value or !$key)) continue; //Fix bug #951. - $value = $_POST['values'][$index]; - $system = $_POST['systems'][$index]; + $value = $data->values[$index]; + $system = $data->systems[$index]; $this->custom->setItem("{$lang}.{$module}.{$field}.{$key}.{$system}", $value); } }