adding } on line 410

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