Code: Select all
if ($submit)
{
// Test if the form is valid
if (!check_form_key('add_edit_category'))
{
$errors[] = $this->lang->lang('FORM_INVALID');
}
}
EDIT: Nevermind
Note: When using confirm_box(), the add_form_key() and check_form_key() functions are not needed (for CSRF protection).