From: Marcel Werk Date: Mon, 18 Jul 2016 14:21:11 +0000 (+0200) Subject: Fixed missing join in UserOnlineList X-Git-Tag: 3.0.0_Beta_1~1050 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12136fa5541b56c4595edbfdef6378bd3b60372e;p=GitHub%2FWoltLab%2FWCF.git Fixed missing join in UserOnlineList --- diff --git a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php index 1cf43827af..1346ff1d4d 100644 --- a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php @@ -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)";