From cb2bc809ef29f349d38c89e202d821e67bb4c947 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 21 Sep 2010 14:47:55 -0400 Subject: [PATCH] Fix db_mode check in insert_id() --- program/steps/mail/sendmdn.inc | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/program/steps/mail/sendmdn.inc b/program/steps/mail/sendmdn.inc index c3294e7..880c5c5 100644 --- a/program/steps/mail/sendmdn.inc +++ b/program/steps/mail/sendmdn.inc @@ -15,10 +15,13 @@ | Author: Thomas Bruederli <roundcube@gmail.com> | +-----------------------------------------------------------------------+ - $Id: sendmail.inc 930 2007-11-25 17:34:19Z thomasb $ + $Id$ */ +// only process ajax requests +if (!$OUTPUT->ajax_call) + return; if (!empty($_POST['_uid'])) { $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST), $smtp_error); @@ -37,5 +40,3 @@ } $OUTPUT->send(); - -?> \ No newline at end of file -- Gitblit v1.9.1