From 3530634436be55ae554eb9f36849f5477aaf5b59 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 11 Nov 2011 17:07:34 +0100 Subject: [PATCH] Changed select order to prevent userID = null --- wcfsetup/install/files/lib/data/user/User.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index 69eecd4920..8731134481 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -61,7 +61,7 @@ final class User extends DatabaseObject { */ public function __construct($id, $row = null, User $object = null) { if ($id !== null) { - $sql = "SELECT * + $sql = "SELECT user_option_value.*, user_table.* FROM wcf".WCF_N."_user user_table LEFT JOIN wcf".WCF_N."_user_option_value user_option_value ON (user_option_value.userID = user_table.userID) -- 2.20.1