Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context: com_tags.tag. Notice: Undefined property: stdClass::$id #1

Open
vdespa opened this issue May 12, 2013 · 1 comment
Open

Context: com_tags.tag. Notice: Undefined property: stdClass::$id #1

vdespa opened this issue May 12, 2013 · 1 comment

Comments

@vdespa
Copy link

vdespa commented May 12, 2013

When a menu item with tags is defined and accessed the following PHP warning appears:

Notice: Undefined property: stdClass::$id in \plugins\content\artofcomments\artofcomments.php on line 149

Id in this case is NULL.

@vdespa
Copy link
Author

vdespa commented May 12, 2013

If fixed this with something like:

    if (property_exists($article, "id"))
        $enabledKey = $context . '-' . (int) $article->id;
    else
        $enabledKey = -1;

Let me know if I should submit a PR.

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

No branches or pull requests

1 participant