From: Matthias Schmidt Date: Wed, 4 Jan 2012 09:10:13 +0000 (+0100) Subject: Fixes wrong table alias in UserListPage X-Git-Tag: 2.0.0_Beta_1~1455^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=991c7b8dc1eb343b5aef1b217e69dc84ab36787e;p=GitHub%2FWoltLab%2FWCF.git Fixes wrong table alias in UserListPage --- diff --git a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php index 5610ac666e..8b18a66d24 100755 --- a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php @@ -171,7 +171,7 @@ class UserListPage extends SortablePage { $userIDs = array(); $sql = "SELECT user_table.userID FROM wcf".WCF_N."_user user_table - ".(isset($this->options[$this->sortField]) ? "LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user.userID)" : '')." + ".(isset($this->options[$this->sortField]) ? "LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user_table.userID)" : '')." ".$this->conditions." ORDER BY ".(($this->sortField != 'email' && isset($this->options[$this->sortField])) ? 'user_option_value.userOption'.$this->options[$this->sortField]['optionID'] : $this->sortField)." ".$this->sortOrder; $statement = WCF::getDB()->prepareStatement($sql, $this->itemsPerPage, ($this->pageNo - 1) * $this->itemsPerPage);