@@ 69-71 (lines=3) @@ | ||
66 | } |
|
67 | ||
68 | $field = 'email'; |
|
69 | if (!empty($this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_FIELD_IDENTIFIER])) { |
|
70 | $field = $this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_FIELD_IDENTIFIER]; |
|
71 | } |
|
72 | ||
73 | if (array_key_exists($field, $fields)) { |
|
74 | return $fields[$field]->email; |
|
@@ 112-114 (lines=3) @@ | ||
109 | return $fieldValue->value->text; |
|
110 | } |
|
111 | ||
112 | if (!empty($this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_SUBJECT])) { |
|
113 | return $this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_SUBJECT]; |
|
114 | } |
|
115 | ||
116 | $message = Constants::FIELD_AUTO_RESPONDER_SUBJECT . '|' . ConfigurationConstants::EMAIL_SUBJECT; |
|
117 | throw new MissingValueException($message); |