lib/kolab_client_task.php

Aleksander Machniak machniak at kolabsys.com
Fri Oct 19 14:34:47 CEST 2012


 lib/kolab_client_task.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b22c946c58592db92aaf22ca1552bef41a925beb
Author: Aleksander Machniak <alec at alec.pl>
Date:   Fri Oct 19 14:33:28 2012 +0200

    Fix api_call() where get and post requests were replaced

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





More information about the commits mailing list