summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/kolab_api_service_type.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_type.php b/lib/api/kolab_api_service_type.php
index 9255d1c..e6c56a1 100644
--- a/lib/api/kolab_api_service_type.php
+++ b/lib/api/kolab_api_service_type.php
@@ -133,7 +133,7 @@ class kolab_api_service_type extends kolab_api_service
// @TODO: check privileges
- $this->db->query("DELETE FROM {$object_name}_types WHERE id = ?", array($object_id));
+ $this->db->query("DELETE FROM {$object_name}_types WHERE id = " . intval($object_id));
return (bool) $this->db->affected_rows();
}