summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_type.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-03 12:27:33 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-03 12:27:33 +0200
commit78ebe8115f764fb80c21d6a4eb1548ecd19f2091 (patch)
tree26af301412f6874879e6bf2e9ac3c091d927a9e1 /lib/api/kolab_api_service_type.php
parentbf2c04c26ce94ab5b8bb6d2696057ec827d1b121 (diff)
downloadwebadmin-78ebe8115f764fb80c21d6a4eb1548ecd19f2091.tar.gz
Fix query in type_edit()
Diffstat (limited to 'lib/api/kolab_api_service_type.php')
-rw-r--r--lib/api/kolab_api_service_type.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/kolab_api_service_type.php b/lib/api/kolab_api_service_type.php
index 794de16..4524556 100644
--- a/lib/api/kolab_api_service_type.php
+++ b/lib/api/kolab_api_service_type.php
@@ -161,7 +161,6 @@ class kolab_api_service_type extends kolab_api_service
}
// @TODO: check privileges
-
$type = $postdata['type'];
$query = array(
'key' => $postdata['key'],
@@ -179,7 +178,7 @@ class kolab_api_service_type extends kolab_api_service
}
$result = $this->db->query("UPDATE {$type}_types SET "
- . implode(', ', $query) . " WHERE id = ?", array($postdata['id']));
+ . implode(', ', $query) . " WHERE id = " . intval($postdata['id']));
if (!$result) {
return false;