Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
vdespa opened this Issue · 1 comment

1 participant

@vdespa

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

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
Something went wrong with that request. Please try again.