• Resolved unostar

    (@unostar)


    [29-Nov-2017 13:01:40 UTC] PHP Notice: Undefined offset: 0 in /wp-content/plugins/noindex-nofollow-all-posts-category/noindex-nofollow-all-posts-category.php on line 17
    [29-Nov-2017 13:01:40 UTC] PHP Notice: Trying to get property of non-object in /wp-content/plugins/noindex-nofollow-all-posts-category/noindex-nofollow-all-posts-category.php on line 17

Viewing 1 replies (of 1 total)
  • This solves:

    if (! empty( $categories )) { $cat_id = $categories[0]->cat_ID; } else {$cat_id = '';}

    • This reply was modified 2 years, 3 months ago by unostar.
    • This reply was modified 2 years, 3 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • The topic ‘Bug’ is closed to new replies.