Fixed missing join in UserOnlineList
authorMarcel Werk <burntime@woltlab.com>
Mon, 18 Jul 2016 14:21:11 +0000 (16:21 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 18 Jul 2016 14:21:11 +0000 (16:21 +0200)
wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php

index 1cf43827af4c9b1f0e41c23c86d44aca3463980f..1346ff1d4d9d00ad48f9baab67c6ecbb84965654 100644 (file)
@@ -17,7 +17,7 @@ use wcf\util\StringUtil;
  *
  * @method     UserOnline              current()
  * @method     UserOnline[]            getObjects()
- * @method     UserOnline|null search($objectID)
+ * @method     UserOnline|null         search($objectID)
  * @property   UserOnline[]            $objects
  */
 class UsersOnlineList extends SessionList {
@@ -51,7 +51,7 @@ class UsersOnlineList extends SessionList {
                
                $this->sqlSelects .= "user_avatar.*, user_option_value.*, user_group.userOnlineMarking, user_table.*";
                
-               $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user user_table ON (user_table.userID = session.userID)";
+               $this->sqlConditionJoins .= $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user user_table ON (user_table.userID = session.userID)";
                $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user_table.userID)";
                $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user_avatar user_avatar ON (user_avatar.avatarID = user_table.avatarID)";
                $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user_group user_group ON (user_group.groupID = user_table.userOnlineGroupID)";