From: Roland Häder Date: Sun, 23 Jun 2013 19:52:08 +0000 (+0000) Subject: Corrected assert, added debug line X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aeaa81ff59126567436dc8d0eaa95d86ce4c409e;p=hub.git Corrected assert, added debug line --- diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index c050b3e1c..ba893bd89 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -295,6 +295,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R self::STACKER_NAME_BACK_BUFFER ) as $stackerName) { // Init this stacker + //* DEBUG: */ print(__METHOD__ . ': stackerName=' . $stackerName . ',forceReInit=' . intval($forceReInit) . PHP_EOL); $this->getStackerInstance()->initStacker($stackerName, $forceReInit); } // END - foreach } @@ -725,7 +726,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R $packageData = $this->getStackerInstance()->getNamed(self::STACKER_NAME_DECLARED); // Assert on it - assert($packageData[self::PACKAGE_DATA_RECIPIENT]); + assert(isset($packageData[self::PACKAGE_DATA_RECIPIENT])); // Try to deliver the package try {