]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/database/wrapper/node/class_NodeListDatabaseWrapper.php
Code cleanups and project continued:
[hub.git] / application / hub / main / database / wrapper / node / class_NodeListDatabaseWrapper.php
index e008420d2156f7f447f1d48a6fe1bc7f647b4261..2279037cd25902519213f08fef915f879a21508e 100644 (file)
@@ -80,8 +80,8 @@ class NodeListDatabaseWrapper extends BaseDatabaseWrapper implements Registerabl
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
-               // Search for the node number zero which is hard-coded the default
-               $searchInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_NODE_SESSION_ID, 1);
+               // Search for the node session id
+               $searchInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_NODE_SESSION_ID, $sessionId);
                $searchInstance->setLimit(1);
 
                // Get a result back