]> git.mxchange.org Git - hub.git/commitdiff
Added assert() to check if is really an array
authorRoland Häder <roland@mxchange.org>
Thu, 25 Jul 2013 00:32:01 +0000 (00:32 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 25 Jul 2013 00:32:01 +0000 (00:32 +0000)
application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php

index 1077015915bf9bdb3267a36e7cd192b08bc543b8..967941664345a40c6450d2c6f2bb449fbcbee2be 100644 (file)
@@ -88,6 +88,9 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
                // Get an array of all accepted object types
                $objectList = $nodeInstance->getListFromAcceptedObjectTypes();
 
+               // Make sure this is an array
+               assert(is_array($objectList));
+
                // Add public node data
                $dataSetInstance->addCriteria(self::DB_COLUMN_NODE_MODE       , $requestInstance->getRequestElement('mode'));
                $dataSetInstance->addCriteria(self::DB_COLUMN_EXTERNAL_IP     , $ipPort[0]);