Title: Bug
Last modified: November 29, 2017

---

# Bug

 *  Resolved [unostar](https://wordpress.org/support/users/unostar/)
 * (@unostar)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-206/)
 * [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)

 *  Thread Starter [unostar](https://wordpress.org/support/users/unostar/)
 * (@unostar)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-206/#post-9763086)
 * This solves:
 * `if (! empty( $categories )) { $cat_id = $categories[0]->cat_ID; } else {$cat_id
   = '';}`
    -  This reply was modified 8 years, 8 months ago by [unostar](https://wordpress.org/support/users/unostar/).
    -  This reply was modified 8 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

The topic ‘Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/noindex-nofollow-all-posts-category.
   svg)
 * [NoIndex NoFollow All Posts](https://wordpress.org/plugins/noindex-nofollow-all-posts-category/)
 * [Support Threads](https://wordpress.org/support/plugin/noindex-nofollow-all-posts-category/)
 * [Active Topics](https://wordpress.org/support/plugin/noindex-nofollow-all-posts-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/noindex-nofollow-all-posts-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/noindex-nofollow-all-posts-category/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [unostar](https://wordpress.org/support/users/unostar/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/bug-206/#post-9763086)
 * Status: resolved