From 3e18113782d017d3e3d5bbb4f1ae8d522cbf3116 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 15 May 2017 17:46:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9BasicAdmi?= =?UTF-8?q?n=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/controller/BasicAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/controller/BasicAdmin.php b/extend/controller/BasicAdmin.php index 8b1182905..206b647d1 100644 --- a/extend/controller/BasicAdmin.php +++ b/extend/controller/BasicAdmin.php @@ -147,8 +147,8 @@ class BasicAdmin extends Controller { * @return bool */ protected function _callback($method, &$data) { - foreach ([$method, "_" . $this->request->action() . "{$method}"] as $method) { - if (method_exists($this, $method) && false === $this->$method($data)) { + foreach ([$method, "_" . $this->request->action() . "{$method}"] as $_method) { + if (method_exists($this, $_method) && false === $this->$_method($data)) { return false; } }