From 2cc6e13b4b88fd492f421753bad9b2ad1a413d58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 Jul 2013 21:24:05 +0000 Subject: [PATCH] Used valid() instead of next() --- .../main/discovery/payment/class_LocalPaymentDiscovery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2