Changed select order to prevent userID = null
authorAlexander Ebert <ebert@woltlab.com>
Fri, 11 Nov 2011 16:07:34 +0000 (17:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 11 Nov 2011 16:07:34 +0000 (17:07 +0100)
wcfsetup/install/files/lib/data/user/User.class.php

index 69eecd4920e3237e697660819548ef94a659c38e..8731134481ecb5b10c1d8f38c79e6a9c84478b0d 100644 (file)
@@ -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)