]> git.mxchange.org Git - hub.git/commitdiff
Opps :(
authorRoland Häder <roland@mxchange.org>
Thu, 21 Feb 2013 23:28:26 +0000 (23:28 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 21 Feb 2013 23:28:26 +0000 (23:28 +0000)
application/hub/main/discovery/package/class_PackageRecipientDiscovery.php

index 040c3083b65cf7e66da50295438ff3cfd85df532..f98d95e79d2d87ad3523b198f082b04af95365b7 100644 (file)
@@ -60,7 +60,7 @@ class PackageRecipientDiscovery extends BaseHubDiscovery implements Discoverable
         */
        public function discoverRecipients (array $packageData) {
                // This must be available
-               assert($packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]);
+               assert(isset($packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]));
 
                // First try out the direct recipient (session id)
                try {
@@ -94,7 +94,7 @@ class PackageRecipientDiscovery extends BaseHubDiscovery implements Discoverable
         */
        public function discoverRawRecipients (array $decodedData) {
                // This must be available
-               assert($decodedData[NetworkPackage::PACKAGE_DATA_RECIPIENT]);
+               assert(isset($decodedData[NetworkPackage::PACKAGE_DATA_RECIPIENT]));
 
                // First clear all recipients
                $this->clearRecipients();