Fixing UserStorageHandler
authorTim Düsterhus <timwolla@arcor.de>
Sat, 10 Dec 2011 12:07:49 +0000 (13:07 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Sat, 10 Dec 2011 12:07:49 +0000 (13:07 +0100)
$packageID was not correctly passed.

wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php

index feafa11bebbbb26df8a1a3c8885b06df4a45150a..0c141855a861e51ecc20d8584c428ba8eded0798 100644 (file)
@@ -50,7 +50,7 @@ class UserStorageHandler extends SingletonFactory {
                
                $conditions = new PreparedStatementConditionBuilder();
                $conditions->add("userID IN (?)", array($tmp));
-               $conditions->add("packageID = ?", array(PACKAGE_ID));
+               $conditions->add("packageID = ?", array($packageID));
                
                $sql = "SELECT  *
                        FROM    wcf".WCF_N."_user_storage