* The flags entry contain all items displayed in the flag column.
*/
$icon = '';
$index = 0;
foreach ($aFlags as $flag => $flagvalue) {
switch ($flag) {
case 'deleted':
case 'answered':
case 'forwarded':
case 'seen':
case 'flagged': if ($flagvalue) $index += $flag_values[$flag]; break;
default: break;
}
}
if (!empty($flag_icons[$index])) {
$data = $flag_icons[$index];
} else {
//FIXME: previously this default was set to the last value of the $flag_icons array (when it was index 15 - flagged anserwed deleted seen) but I don't understand why... am changing it to flagged (index 15 just shows (only) the flag icon anyway)
$data = $flag_icons[8]; // default to just flagged