summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-24 19:27:54 +0000
committeralecpl <alec@alec.pl>2012-04-24 19:27:54 +0000
commit6da093890c04a112a79724f4e05b708a9c0879e7 (patch)
tree4904d2122bcc1085e4bf1bbc6c6c0725a1fcb090 /program/steps
parenta57f9e2c64a8495ccb89a8b79eba6052483a0ede (diff)
- Applied fixes from trunk up to r6123
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/sendmail.inc20
1 files changed, 11 insertions, 9 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index bb2bd2732..faaeddcda 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -698,17 +698,19 @@ if ($store_target) {
unlink($mailbody_file);
$mailbody_file = null;
}
+ }
- // raise error if saving failed
- if (!$saved) {
- raise_error(array('code' => 800, 'type' => 'imap',
- 'file' => __FILE__, 'line' => __LINE__,
- 'message' => "Could not save message in $store_target"), TRUE, FALSE);
+ // raise error if saving failed
+ if (!$saved) {
+ raise_error(array('code' => 800, 'type' => 'imap',
+ 'file' => __FILE__, 'line' => __LINE__,
+ 'message' => "Could not save message in $store_target"), TRUE, FALSE);
- if ($savedraft) {
- $OUTPUT->show_message('errorsaving', 'error');
- $OUTPUT->send('iframe');
- }
+ if ($savedraft) {
+ $OUTPUT->show_message('errorsaving', 'error');
+ // start the auto-save timer again
+ $OUTPUT->command('auto_save_start');
+ $OUTPUT->send('iframe');
}
}