// Do we have an entry?
if ($this->getResultInstance()->next()) {
// Get the entry
- $entry = $this->getResultInstance()->current();
+ $currentEntry = $this->getResultInstance()->current();
// Add the points
- $amount += $entry[UserPointsDatabaseWrapper::DB_COLUMN_POINTS];
+ $amount += $currentEntry[UserPointsDatabaseWrapper::DB_COLUMN_POINTS];
// Now get another criteria
$updateInstance = ObjectFactory::createObjectByConfiguredName('update_criteria_class');