From 86135e2bcca0546b9c200a9663ec3ad7b94459fa Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 30 May 2012 05:35:57 -0400
Subject: [PATCH] Don't show errors when moving contacts into groups they're already in (#1488493)

---
 program/include/rcube_contacts.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php
index c30751f..3e30043 100644
--- a/program/include/rcube_contacts.php
+++ b/program/include/rcube_contacts.php
@@ -937,7 +937,9 @@
                 $contact_id
             );
 
-            if (!$this->db->db_error)
+            if ($this->db->db_error)
+                $this->set_error(self::ERROR_SAVING, $this->db->db_error_msg);
+            else
                 $added++;
         }
 

--
Gitblit v1.9.1