WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Gurken Subscribe to Comments] Undefined variables (4 posts)

  1. Steven Vachon
    Member
    Posted 4 years ago #

    Notice: Undefined variable: update in /wp-content/plugins/gurken-subscribe-to-comments/Subscribe.class.php on line 818

    Notice: Undefined index: default_subscribed in /wp-content/plugins/gurken-subscribe-to-comments/Subscribe.class.php on line 53

    http://wordpress.org/extend/plugins/gurken-subscribe-to-comments/

  2. infogurke
    Member
    Posted 4 years ago #

    Both errors are from the original author. Fixed in svn and will be in the next release.

    Tanks for reporting

  3. Joe Hoyle
    Human Made
    Posted 4 years ago #

    In version 1.6, I added an isset() for the $_POST variable as it was creating a PHP Notice:

    add_action('init', create_function('$a','global $sg_subscribe; if ( isset( $_POST[\'solo-comment-subscribe\'] ) && $_POST[\'solo-comment-subscribe\'] == \'solo-comment-subscribe\' && is_numeric($_POST[\'postid\']) ) {
  4. infogurke
    Member
    Posted 4 years ago #

    Thanks. Fixed in 1.7. I replaced the anonymous function with a real one, this should also be slightly faster.

Topic Closed

This topic has been closed to new replies.

About this Topic