Plugin Directory

Changeset 1636279


Ignore:
Timestamp:
04/12/2017 07:03:10 PM (9 years ago)
Author:
frankenstein-uk
Message:

tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nm-contact-forms/trunk/index.php

    r1636271 r1636279  
    324324            if(empty($the_field['required'])) $the_field['type'] = 0;
    325325           
    326             if($the_field['type'] != 'file_upload' && $the_field['required'] && (empty($_POST[$field_id]) || !isset($_POST[$field_id]))) $response['errors'][] = $the_field['title']. ' is required';
     326            if($the_field['type'] != 'file_upload' && $the_field['required'] && (empty($_POST[$field_id]) || !isset($_POST[$field_id]))) $response['errors'][] = $the_field['title']. ' is required.';
    327327               
    328328        }
     
    359359            if($field_id != 'nm_nonce' && $field_id != 'g-recaptcha-response' && $field_id != $honeypot_field_id && $field_id != $attachment_id){
    360360
    361                 if(!count($field_value)) $response['errors'][] = $field_settings['title']. ' is required';
     361                if(!count($field_value)) $response['errors'][] = $field_settings['title']. ' is required.';
    362362               
    363363                $data['fields'][$field_id]['title'] = $field_settings['title'];
Note: See TracChangeset for help on using the changeset viewer.