Skip to content

Commit

Permalink
[fix] Who's online module shows multiple entries for a user name. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dandpclements authored and Thomas Hunziker committed Dec 2, 2014
1 parent 1a22cbd commit b858931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod_whosonline/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ public static function getOnlineUserNames($params)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select($db->quoteName(array('a.username', 'a.time', 'a.userid', 'a.client_id')))
->select($db->quoteName(array('a.username', 'a.userid', 'a.client_id')))
->from('#__session AS a')
->where($db->quoteName('a.userid') . ' != 0')
->where($db->quoteName('a.client_id') . ' = 0')
->group($db->quoteName(array('a.username', 'a.time', 'a.userid', 'a.client_id')));
->group($db->quoteName(array('a.username', 'a.userid', 'a.client_id')));

$user = JFactory::getUser();

Expand Down

0 comments on commit b858931

Please sign in to comment.