diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-03 13:09:55 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-03 13:09:55 +0200 |
commit | 4fd677c32ea051774f52f6907aaa929663e05c69 (patch) | |
tree | 2e2ca1b0527296ec8737df3fd1acd4d7eec8da22 | |
parent | f9b4e6bd5d625a5552b40bbb967c09035c9aea7c (diff) | |
download | webadmin-4fd677c32ea051774f52f6907aaa929663e05c69.tar.gz |
Fix query in type_delete()
-rw-r--r-- | lib/api/kolab_api_service_type.php | 2 |
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(); } |