This commit is contained in:
2021-01-22 18:22:18 +08:00
parent cb3df20d16
commit b45910b21a
+1 -1
View File
@@ -317,7 +317,7 @@ class ActiveRecord extends BaseActiveRecord
continue; continue;
} }
$item = [$this, $item[1]]; $item = [$this, $item[1]];
$data[$key] = call_user_func($item, $data[$key]); $data[$key] = call_user_func($item, $data[$key] ?? '');
} }
return array_merge($data, $this->runRelate()); return array_merge($data, $this->runRelate());
} }