*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
// 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