From: Roland Häder Date: Thu, 21 Feb 2013 23:28:26 +0000 (+0000) Subject: Opps :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c38a85a54498c875a1f3ca3f28044e96d4d7670b;p=hub.git Opps :( --- diff --git a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php index 040c3083b..f98d95e79 100644 --- a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php +++ b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php @@ -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();