[更新]优化基础控制器

This commit is contained in:
Anyon 2017-06-02 14:56:54 +08:00
parent 70b4433f6a
commit aba79cc376

View File

@ -118,11 +118,11 @@ class BasicAdmin extends Controller {
} else {
$result['list'] = $db->select();
}
if (false === $this->_callback('_data_filter', $result['list']) || !$isDisplay) {
return $result;
if (false !== $this->_callback('_data_filter', $result['list']) && $isDisplay) {
!empty($this->title) && $this->assign('title', $this->title);
return $this->fetch('', $result);
}
!empty($this->title) && $this->assign('title', $this->title);
return $this->fetch('', $result);
return $result;
}
/**