diff --git a/library/think/model/Collection.php b/library/think/model/Collection.php index 4e4bb4dc..e5f9ceec 100644 --- a/library/think/model/Collection.php +++ b/library/think/model/Collection.php @@ -85,7 +85,7 @@ class Collection extends BaseCollection { $this->each(function ($model) use ($append, $override) { /** @var Model $model */ - $model->append($append, $override); + $model && $model->append($append, $override); }); return $this; }