if ($unconfirmed > 0) {
// At least one link left to confirm
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// User data found? We can take any field of u.
if (!is_null($content['status'])) {
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'userid' => $content['userid'],
'link' => $LINK,
'id' => $ID,
// Load row template and switch colors
$OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
} else {
- // Insert color-switch
- $content['sw'] = $SW;
-
// No user data found
$OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $content);
}
-
- // Switch color
- $SW = 3 - $SW;
} // END - while
// Render it in our new listing