Title: Undefined variable throws PHP notice
Last modified: August 24, 2016

---

# Undefined variable throws PHP notice

 *  Resolved [pbradaric](https://wordpress.org/support/users/pbradaric/)
 * (@pbradaric)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-throws-php-notice/)
 * Function `pg_get_user_replies_created` in `includes/replies.php` has an issue:`
   $limit` variable is undefined in certain cases, so `if ($limit != 'n')` clause
   throws PHP notice.
 * [https://wordpress.org/plugins/bbp-private-groups/](https://wordpress.org/plugins/bbp-private-groups/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-throws-php-notice/#post-5963585)
 * pbradaric – thanks for that, I’ll amend it in the next version which should be
   out shortly.

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable throws PHP notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbp-private-groups.svg)
 * [Private groups](https://wordpress.org/plugins/bbp-private-groups/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-private-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-private-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-private-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-private-groups/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-throws-php-notice/#post-5963585)
 * Status: resolved