Changeset 1755 in subversion


Ignore:
Timestamp:
Sep 6, 2008 2:04:15 PM (5 years ago)
Author:
thomasb
Message:

Give the user a second chance when sending failes due session error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/sendmail.inc

    r1754 r1755  
    2222 
    2323 
    24 if (!isset($_SESSION['compose']['id'])) 
    25   { 
     24// remove all scripts and act as called in frame 
     25$OUTPUT->reset(); 
     26$OUTPUT->framed = TRUE; 
     27 
     28 
     29if (!isset($_SESSION['compose']['id'])) { 
    2630  raise_error(array('code' => 500, 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); 
    27   rcmail_overwrite_action('compose'); 
    28   return; 
    29   } 
     31  console("Sendmail error", $_SESSION['compose']); 
     32  $OUTPUT->show_message("An internal error occured. Please try again.", 'error'); 
     33  $OUTPUT->send('iframe'); 
     34} 
    3035 
    3136 
     
    118123$savedraft = !empty($_POST['_draft']) ? TRUE : FALSE; 
    119124 
    120 // remove all scripts and act as called in frame 
    121 $OUTPUT->reset(); 
    122 $OUTPUT->framed = TRUE; 
    123  
    124125 
    125126/****** check submission and compose message ********/ 
Note: See TracChangeset for help on using the changeset viewer.