From c3d460dbf0775793c9a1e50d111d74c50d881c78 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 29 Feb 2012 03:24:35 +0100 Subject: [PATCH] Small improvement --- .../install/files/lib/data/user/UserList.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/UserList.class.php b/wcfsetup/install/files/lib/data/user/UserList.class.php index 0bef8745d7..db8720204e 100644 --- a/wcfsetup/install/files/lib/data/user/UserList.class.php +++ b/wcfsetup/install/files/lib/data/user/UserList.class.php @@ -17,4 +17,15 @@ class UserList extends DatabaseObjectList { * @see wcf\data\DatabaseObjectList::$className */ public $className = 'wcf\data\user\User'; + + /** + * Creates a new UserList object. + */ + public function __construct() { + parent::__construct(); + + if (!empty($this->sqlSelects)) $this->sqlSelects .= ','; + $this->sqlSelects .= "user_option_value.*"; + $this->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user_table.userID)"; + } } -- 2.20.1