} // END - while
// Is there points to "pay back"?
- if ((count($pointsBack) > 0) && (!empty($pointsBack[0]))) {
+ if ((isFilledArray($pointsBack)) && (!empty($pointsBack[0]))) {
// Walk through all points
foreach ($pointsBack as $userid => $PB) {
// Add points only when we have points left to add and a valid user id