set_exception_handler('hub_exception_handler');
// Init assert handling
-assert_options(ASSERT_ACTIVE, true);
-assert_options(ASSERT_WARNING, false);
-assert_options(ASSERT_BAIL, false);
-assert_options(ASSERT_QUIET_EVAL, false);
-assert_options(ASSERT_CALLBACK, '__assertHandler');
+assert_options(ASSERT_ACTIVE , TRUE);
+assert_options(ASSERT_WARNING , FALSE);
+assert_options(ASSERT_BAIL , TRUE);
+assert_options(ASSERT_QUIET_EVAL, FALSE);
+assert_options(ASSERT_CALLBACK , '__assertHandler');
// [EOF]
?>
// 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);
}