summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-19 14:33:28 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-19 14:34:33 +0200
commitb22c946c58592db92aaf22ca1552bef41a925beb (patch)
tree85a5a2bab62fb846a34ea990bd9867c3b27fc052 /lib/kolab_client_task.php
parentdafc26b79033d53abb3f1332594d66a1f1cd22e9 (diff)
downloadwebadmin-b22c946c58592db92aaf22ca1552bef41a925beb.tar.gz
Fix api_call() where get and post requests were replaced
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 95d45a7..5fe2473 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -565,10 +565,10 @@ class kolab_client_task
protected function api_call($type, $action, $get = array(), $post = array())
{
if ($type == 'post') {
- $result = $this->api->get($action, $get);
+ $result = $this->api->post($action, $get, $post);
}
else {
- $result = $this->api->post($action, $get, $post);
+ $result = $this->api->get($action, $get);
}
// error handling