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/copy.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/program/steps/mail/copy.inc b/program/steps/mail/copy.inc
index e2270a7..175994f 100644
--- a/program/steps/mail/copy.inc
+++ b/program/steps/mail/copy.inc
@@ -29,7 +29,7 @@
 
 // move messages
 if (!empty($_POST['_uid']) && !empty($_POST['_target_mbox'])) {
-    $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST))));
+    $uids = get_input_value('_uid', RCUBE_INPUT_POST);
     $target = get_input_value('_target_mbox', RCUBE_INPUT_POST);
     $mbox = get_input_value('_mbox', RCUBE_INPUT_POST);
 
@@ -37,8 +37,6 @@
   
     if (!$copied) {
         // send error message
-	if ($_POST['_from'] != 'show')
-          $OUTPUT->command('list_mailbox');
         $OUTPUT->show_message('errorcopying', 'error');
         $OUTPUT->send();
         exit;
@@ -56,4 +54,4 @@
 // send response
 $OUTPUT->send();
 
-?>
+

--
Gitblit v1.9.1