| | |
| | | $this->dataRecord["login"] = isset($this->dataRecord["email"]) ? $this->dataRecord["email"] : ''; |
| | | } |
| | | //* if autoresponder checkbox not selected, do not save dates |
| | | if (!isset($_POST['autoresponder']) && array_key_exists('autoresponder_start_date', $_POST)) { |
| | | $this->dataRecord['autoresponder_start_date'] = array_map(create_function('$item', 'return 0;'), $this->dataRecord['autoresponder_start_date']); |
| | | $this->dataRecord['autoresponder_end_date'] = array_map(create_function('$item', 'return 0;'), $this->dataRecord['autoresponder_end_date']); |
| | | if (!isset($_POST['autoresponder'])) { |
| | | $this->dataRecord['autoresponder_start_date'] = ''; |
| | | $this->dataRecord['autoresponder_end_date'] = ''; |
| | | } |
| | | |
| | | parent::onSubmit(); |