added close if } on row 409

solve error Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in