From: Roland Haeder Date: Fri, 28 Mar 2014 20:14:39 +0000 (+0100) Subject: Also this assertion was a bit to hard. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cee7094e950cf6bed95297b73a77830b26247874;p=hub.git Also this assertion was a bit to hard. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/dht/node/class_NodeDhtFacade.php b/application/hub/main/dht/node/class_NodeDhtFacade.php index 16a7a995f..56ed66f77 100644 --- a/application/hub/main/dht/node/class_NodeDhtFacade.php +++ b/application/hub/main/dht/node/class_NodeDhtFacade.php @@ -328,7 +328,12 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable { // Make sure the result instance is valid assert($resultInstance instanceof SearchableResult); - assert($resultInstance->valid()); + + // No entries found? + if (!$resultInstance->valid()) { + // Then skip below loop + return array(); + } // END - if // Init array $recipients = array();