Title: [PATCH] Undefined offset warning
Last modified: August 21, 2016

---

# [PATCH] Undefined offset warning

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/patch-undefined-offset-warning/)
 * When updating a category I got a warning:
 * > Notice: Undefined offset: 16 in /path/wp/extended-categories-widget/3.3/class/
   > avh-ec.admin.php on line 130
 * Update is simple enough. Change
 *     ```
       if (isset($_POST['avhec_categorygroup']) && $tax_meta[$taxonomy][$term_id]['category_group_term_id'] != $_POST['avhec_categorygroup']) {
       ```
   
 * to
 *     ```
       if (isset($_POST['avhec_categorygroup']) && isset($tax_meta[$taxonomy][$term_id]['category_group_term_id']) && $tax_meta[$taxonomy][$term_id]['category_group_term_id'] != $_POST['avhec_categorygroup']) {
       ```
   
 * [http://wordpress.org/extend/plugins/extended-categories-widget/](http://wordpress.org/extend/plugins/extended-categories-widget/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * (@petervanderdoes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/patch-undefined-offset-warning/#post-3933318)
 * Thanks for the patch.
 * Updated the plugin and released.

Viewing 1 replies (of 1 total)

The topic ‘[PATCH] Undefined offset warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/extended-categories-widget.svg)
 * [AVH Extended Categories Widgets](https://wordpress.org/plugins/extended-categories-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extended-categories-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extended-categories-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/extended-categories-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extended-categories-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extended-categories-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/patch-undefined-offset-warning/#post-3933318)
 * Status: resolved