From: Marcel Werk Date: Mon, 15 Jul 2013 17:30:16 +0000 (+0200) Subject: Fixed import issues X-Git-Tag: 2.0.0_Beta_5~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d58f9cdfe963cd152be9e00ab6b0958e1a137860;p=GitHub%2FWoltLab%2FWCF.git Fixed import issues --- diff --git a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php index 2e328ecb6d..e2d0b9fcfa 100644 --- a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php @@ -37,13 +37,10 @@ class UserImporter implements IImporter { } // check existing user id - $sql = "SELECT COUNT(*) AS count - FROM wcf".WCF_N."_user - WHERE userID = ?"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(array($oldID)); - $row = $statement->fetchArray(); - if (!$row['count']) $data['userID'] = $oldID; + if (is_numeric($oldID)) { + $user = new User($oldID); + if (!$user->userID) $data['userID'] = $oldID; + } // get group ids $groupIDs = array();