// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);
+ // Advance to first entry by default
+ $resultInstance->next();
+
// Set it in this instance
$pointsInstance->setResultInstance($resultInstance);
// Get the required points entry
$requiredPoints = $this->getConfigInstance()->getConfigEntry($action . '_action_points');
+ // Rewind always
+ $this->getResultInstance()->rewind();
+
// Do we have an entry?
if ($this->getResultInstance()->next()) {
// Get the entry
* @return void
*/
function bookPointsDirectly ($amount) {
+ // Rewind always
+ $this->getResultInstance()->rewind();
+
// Do we have an entry?
if ($this->getResultInstance()->next()) {
// Get the entry