From cee7094e950cf6bed95297b73a77830b26247874 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 28 Mar 2014 21:14:39 +0100 Subject: [PATCH] Also this assertion was a bit to hard. Signed-off-by: Roland Haeder --- application/hub/main/dht/node/class_NodeDhtFacade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- 2.39.5