X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fdatabase%2Fwrapper%2Fnode%2Fclass_NodeDistributedHashTableDatabaseWrapper.php;h=f3224f329cba405e1e3690ebc96f39a17cc246dc;hb=98108175fb091c9067b63410599aadeb75eb6a10;hp=a948629634d7b20fa492858fc9d17dfb2396c7a3;hpb=d346144d165c76c6aa94092f572daf19890d4461;p=hub.git diff --git a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php index a94862963..f3224f329 100644 --- a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -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');