[Plugin: WP-UserOnline] Code syntax error in template_tags.php
-
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP-UserOnline] Code syntax error in template_tags.php’ is closed to new replies.