]> git.mxchange.org Git - hub.git/commitdiff
Always used own session id ... :(
authorRoland Häder <roland@mxchange.org>
Tue, 12 Feb 2013 04:56:37 +0000 (04:56 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Feb 2013 04:56:37 +0000 (04:56 +0000)
application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php

index ffa6e4baa4a3e82d6268d95f27d23e01b1305d42..d880df4b8453e8fa0bb53a81af7b381b30b982f9 100644 (file)
@@ -174,11 +174,8 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
                // Get search criteria
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
-               // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
-
                // Search for session id and limit it to one entry
-               $searchInstance->addCriteria(self::DB_COLUMN_SESSION_ID, $nodeInstance->getSessionId());
+               $searchInstance->addCriteria(self::DB_COLUMN_SESSION_ID, $sessionId);
                $searchInstance->setLimit(1);
 
                // Query database and get a result instance back