cleaned foreach syntax

Not as up-to-date with PHP.  Used a copy/paste syntax for the foreach
loop to process Group IDs.  Removed an unneccessary segment.