Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

专栏文章提交时出现 ErrorException #119

Open
storefee opened this issue Jan 26, 2018 · 0 comments
Open

专栏文章提交时出现 ErrorException #119

storefee opened this issue Jan 26, 2018 · 0 comments

Comments

@storefee
Copy link

storefee commented Jan 26, 2018

$data = array_merge([
            'topic_type' => $topic_type,
            'topic_link' => $topic->link(),
            'topic_title' => $topic->title,
            'topic_category_id' => $topic->category->id,
            'topic_category_name' => $topic->category->name,
        ], $extra_data);

报出这一行 'topic_category_id' => $topic->category->id,出问题,

ErrorException in BaseActivity.php line 42:
Trying to get property of non-object

应该是$topic->category 为空的问题。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant