ActivityDAO

Syntax error changed from if to foreach