}
// Do we have points to "pay back"?
- if ((sizeof($pointsBack) > 0) && (!empty($pointsBack[0]))) {
+ if ((count($pointsBack) > 0) && (!empty($pointsBack[0]))) {
// Walk through all points
foreach ($pointsBack as $uid => $PB) {
// Add points only when we have points left to add and a valid user ID