]> git.mxchange.org Git - hub.git/commitdiff
Also these ...
authorRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 04:10:49 +0000 (04:10 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 04:10:49 +0000 (04:10 +0000)
application/hub/main/nodes/class_BaseHubNode.php

index 1819c95bbdc57c456584fb864ac97e9fb6240cec..897120c888bfb67b20b368a1e57752cdb6173e33 100644 (file)
@@ -309,8 +309,8 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Search for the node number one which is hard-coded the default
-               $searchInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_NR, 1);
-               $searchInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_TYPE, $this->getRequestInstance()->getRequestElement('mode'));
+               $searchInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_NR  , 1);
+               $searchInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_MODE, $this->getRequestInstance()->getRequestElement('mode'));
                $searchInstance->setLimit(1);
 
                // Remember it for later usage
@@ -377,8 +377,8 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                assert($requestInstance instanceof Requestable);
 
                // Add node number and type
-               $criteriaInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_NR, 1);
-               $criteriaInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_TYPE, $requestInstance->getRequestElement('mode'));
+               $criteriaInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_NR  , 1);
+               $criteriaInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_MODE, $requestInstance->getRequestElement('mode'));
 
                // Add the node id
                $criteriaInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_ID, $this->getNodeId());