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 444e4e1..8944988 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);