]> git.mxchange.org Git - hub.git/commitdiff
Also this assertion was a bit to hard.
authorRoland Haeder <roland@mxchange.org>
Fri, 28 Mar 2014 20:14:39 +0000 (21:14 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 28 Mar 2014 20:14:39 +0000 (21:14 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/dht/node/class_NodeDhtFacade.php

index 16a7a995f31001e381a7ca8d89b2d5f774129223..56ed66f77db52d9ed2be40b918e36bb59523a645 100644 (file)
@@ -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();