summaryrefslogtreecommitdiff
path: root/plugins/calendar
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-23 10:03:19 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-23 10:03:19 (GMT)
commit31e3e9ae43a889a0746437cccf7a3df79fda02a3 (patch)
treec3d2b82febd363b4938952731c05939020047e2c /plugins/calendar
parent029892575072fd940f6d13582932472298957c43 (diff)
downloadroundcubemail-plugins-kolab-31e3e9ae43a889a0746437cccf7a3df79fda02a3.tar.gz
Remove itipinvitations database entries related to a deleted user
Diffstat (limited to 'plugins/calendar')
-rw-r--r--plugins/calendar/calendar.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index b67d84c..8febb40 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -3210,6 +3210,11 @@ class calendar extends rcube_plugin
*/
public function user_delete($args)
{
+ // delete itipinvitations entries related to this user
+ $db = $this->rc->get_dbh();
+ $table_itipinvitations = $db->table_name('itipinvitations', true);
+ $db->query("DELETE FROM $table_itipinvitations WHERE `user_id` = ?", $args['user']->ID);
+
$this->load_driver();
return $this->driver->user_delete($args);
}