Commit 38023be8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

server.php: save info ever if no mailing

parent 3f09f843
...@@ -157,10 +157,7 @@ if ($email_users) { ...@@ -157,10 +157,7 @@ if ($email_users) {
$reply_to = REPLY_TO; $reply_to = REPLY_TO;
if (sendMail($subject, $message_email, $to, $from_email, $from_name, $reply_to, 'html')) { if (!sendMail($subject, $message_email, $to, $from_email, $from_name, $reply_to, 'html')) {
echoJsonData(array('success' => 'true', 'message' => $_language[$code_language]['text_success']));
return;
} else {
echoJsonData(array('success' => 'false', 'message' => $_language[$code_language]['mail_error'])); echoJsonData(array('success' => 'false', 'message' => $_language[$code_language]['mail_error']));
return; return;
} }
...@@ -171,3 +168,6 @@ if ($email_users) { ...@@ -171,3 +168,6 @@ if ($email_users) {
return; return;
*/ */
} }
echoJsonData(array('success' => 'true', 'message' => $_language[$code_language]['text_success']));
return;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment