Fluorescence in the presence of traps