plugins/kolab_activesync

Aleksander Machniak machniak at kolabsys.com
Tue Oct 29 15:56:57 CET 2013


 plugins/kolab_activesync/kolab_activesync.php |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit a26efff49528e33012829a76278aa5d4019a48df
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Tue Oct 29 15:56:33 2013 +0100

    When removing a device, remove device data from syncroton database

diff --git a/plugins/kolab_activesync/kolab_activesync.php b/plugins/kolab_activesync/kolab_activesync.php
index ccd1d5c..05e1f35 100644
--- a/plugins/kolab_activesync/kolab_activesync.php
+++ b/plugins/kolab_activesync/kolab_activesync.php
@@ -400,6 +400,15 @@ class kolab_activesync extends rcube_plugin
                     }
                 }
             }
+
+            // remove device data from syncroton database
+            $db    = $this->rc->get_dbh();
+            $table = $db->table_name('syncroton_device');
+
+            if (in_array($table, $db->list_tables())) {
+                $db->query("DELETE FROM $table WHERE owner_id = ? AND deviceid = ?",
+                    $this->rc->user->ID, $id);
+            }
         }
 
         return $result;




More information about the commits mailing list