WordPress.org

Ready to get started?Download WordPress

Forums

WP-UserOnline
[resolved] Code syntax error in template_tags.php (2 posts)

  1. flyeric
    Member
    Posted 2 years ago #

    Hi,

    while using your excellent plugin i needed to check only some specific users status by using this syntax:

    is_user_online($ID);

    i precise for the readers that $ID must contain the Id of the user.

    so, while calling the function it wasn't working and i noticed that at the line 100 on template_tags.php:

    so, i replace this
    return (bool) $wpdb->get_var( $wpdb-prepare( "SELECT COUNT( * ) FROM $wpdb->useronline WHERE user_id = %d LIMIT 1", $user_id ) );

    by this:

    return (bool) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( * ) FROM $wpdb->useronline WHERE user_id = %d LIMIT 1", $user_id ) );

    it misses the ">" symbal...

    cheers,
    Eric.

    http://wordpress.org/extend/plugins/wp-useronline/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in the development version (2.82-alpha). Thanks for reporting.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic