From d97112ed3dd7758bbad76ce5f9edc1b02660acf7 Mon Sep 17 00:00:00 2001 From: "jackfinal-PC\\jackfinal" Date: Sat, 10 Dec 2016 11:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E5=8D=B8?= =?UTF-8?q?=E8=BD=BD=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/model/Hooks.php b/application/common/model/Hooks.php index aacd0c00..2b409b37 100644 --- a/application/common/model/Hooks.php +++ b/application/common/model/Hooks.php @@ -113,7 +113,7 @@ class Hooks extends Base { $addons = explode(',', $value['addons']); $key = array_search($addons_name, $addons); if ($key) { - unset($value['addons'][$key]); + unset($addons[$key]); $addons = implode(',', $addons); $this->where('id', $value['id'])->setField('addons', $addons); }