added close if } on row 409

solve error Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in
Merge pull request #25 from ossarotte/patch-1

added close if } on row 409