]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/dht/class_BaseDht.php
Use constants TRUE/FALSE/NULL instead of keywords true/false/null
[hub.git] / application / hub / main / dht / class_BaseDht.php
index 8ccf5b0817da9581cda29657d6b68deead9672ce..691f12035c55ec8fd7a83ca1a2fdf358d6de77fa 100644 (file)
@@ -108,6 +108,9 @@ abstract class BaseDht extends BaseHubSystem {
                // Get next node data from stack
                $nodeData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_INSERT_NODE);
 
+               // Make sure $nodeData is really an array and has at least one entry
+               assert((is_array($nodeData)) && (count($nodeData) > 0));
+
                // Insert the data
                $this->insertDataIntoDht($nodeData);
        }