Examine packageID as well when checking whether the cache is loaded
authorTim Düsterhus <timwolla@arcor.de>
Sat, 10 Dec 2011 12:12:33 +0000 (13:12 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Sat, 10 Dec 2011 12:12:33 +0000 (13:12 +0100)
wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php

index 0c141855a861e51ecc20d8584c428ba8eded0798..56480536fbf3edbdd79b73f7337d3716b69bfefb 100644 (file)
@@ -42,7 +42,7 @@ class UserStorageHandler extends SingletonFactory {
        public function loadStorage(array $userIDs, $packageID = PACKAGE_ID) {
                $tmp = array();
                foreach ($userIDs as $userID) {
-                       if (!isset($this->cache[$userID])) $tmp[] = $userID;
+                       if (!isset($this->cache[$userID][$packageID])) $tmp[] = $userID;
                }
                
                // ignore users whose storage data is already loaded