lib/api

Aleksander Machniak machniak at kolabsys.com
Wed Oct 3 13:13:33 CEST 2012


 lib/api/kolab_api_service_type.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4fd677c32ea051774f52f6907aaa929663e05c69
Author: Aleksander Machniak <alec at alec.pl>
Date:   Wed Oct 3 13:09:55 2012 +0200

    Fix query in type_delete()

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();
     }





More information about the commits mailing list