When removing a device, remove device data from syncroton database
This commit is contained in:
parent
310e25d0d1
commit
a26efff495
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue