]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php
Changed all true/false to TRUE/FALSE respectively as PHP constants are better than...
[core.git] / inc / classes / main / discovery / payment / class_LocalPaymentDiscovery.php
index b6309baa55ddbda99fa772f89b5c4d57a9722c64..444e4e14f4b0317b48f672f1e0b1b08ee4d2c0be 100644 (file)
@@ -70,11 +70,8 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis
                // Get result back
                $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
 
-               // Advanced to next entry
-               if (!$resultInstance->next()) {
-                       // Not valid!
-                       assert(false);
-               } // END - if
+               // Advanced to next entry and assert on it as it should always be there
+               assert($resultInstance->next());
 
                // Set the result instance
                $this->setResultInstance($resultInstance);