When removing a device, remove device data from syncroton database

This commit is contained in:
Aleksander Machniak 2013-10-29 15:56:33 +01:00
parent 310e25d0d1
commit a26efff495

View file

@ -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;