From: Roland Häder Date: Fri, 19 Jul 2013 21:24:05 +0000 (+0000) Subject: Used valid() instead of next() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2cc6e13b4b88fd492f421753bad9b2ad1a413d58;p=core.git Used valid() instead of next() --- diff --git a/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php b/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php index 444e4e14..89449888 100644 --- a/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php +++ b/inc/classes/main/discovery/payment/class_LocalPaymentDiscovery.php @@ -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);