]> git.mxchange.org Git - core.git/commitdiff
Used valid() instead of next()
authorRoland Häder <roland@mxchange.org>
Fri, 19 Jul 2013 21:24:05 +0000 (21:24 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Jul 2013 21:24:05 +0000 (21:24 +0000)
inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php

index 444e4e14f4b0317b48f672f1e0b1b08ee4d2c0be..89449888dbe8c6ef8a392362bae9d2e3f7feab3c 100644 (file)
@@ -71,7 +71,7 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis
                $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
 
                // Advanced to next entry and assert on it as it should always be there
-               assert($resultInstance->next());
+               assert($resultInstance->valid());
 
                // Set the result instance
                $this->setResultInstance($resultInstance);