]> git.mxchange.org Git - hub.git/commitdiff
Corrected assert, added debug line
authorRoland Häder <roland@mxchange.org>
Sun, 23 Jun 2013 19:52:08 +0000 (19:52 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Jun 2013 19:52:08 +0000 (19:52 +0000)
application/hub/main/package/class_NetworkPackage.php

index c050b3e1cf91358a81d707beaebb2c5fe0fc7d44..ba893bd89869f120708c79d1d332b42208568940 100644 (file)
@@ -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 {