From d58f9cdfe963cd152be9e00ab6b0958e1a137860 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 15 Jul 2013 19:30:16 +0200 Subject: [PATCH] Fixed import issues --- .../files/lib/system/importer/UserImporter.class.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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(); -- 2.20.1