]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php
Added assert on node_id as this may happen with broken database file. If you
[hub.git] / application / hub / main / database / wrapper / node / class_NodeDistributedHashTableDatabaseWrapper.php
index a948629634d7b20fa492858fc9d17dfb2396c7a3..f3224f329cba405e1e3690ebc96f39a17cc246dc 100644 (file)
@@ -275,6 +275,9 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
         * @return      $isRegistered   Whether the given node data is already inserted
         */
        public function isNodeRegistered (array $nodeData) {
+               // Assert on array elements
+               assert(isset($nodeData[self::DB_COLUMN_NODE_ID]));
+
                // Get search criteria
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');