[更新]修改BasicAdmin回调函数

This commit is contained in:
Anyon 2017-05-15 17:46:19 +08:00
parent 04d932a1c3
commit 3e18113782

View File

@ -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;
}
}