mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进废弃字段判断
This commit is contained in:
@@ -132,7 +132,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
if ($this->disuse) {
|
||||
// 废弃字段
|
||||
foreach ((array) $this->disuse as $key) {
|
||||
if (isset($this->data[$key])) {
|
||||
if (array_key_exists($key, $this->data)) {
|
||||
unset($this->data[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user