diff --git a/include/class.thread_actions.php b/include/class.thread_actions.php
index a2c67788c5ba397585a459b42b8ed786a88d4d63..4f65e38ed8e2fc26eb75438ccf15c3050076114a 100644
--- a/include/class.thread_actions.php
+++ b/include/class.thread_actions.php
@@ -526,7 +526,7 @@ JS
         }
 
         if ($this->entry->getThread()->getObjectType()  == 'T')
-          return $this->getTicketsAPI()->addTask($this->getObjectId(), $vars); //TasksAjaxAPI
+          return $this->getTicketsAPI()->addTask($this->getObjectId(), $vars);
         else
           return $this->getTasksAPI()->add($this->getObjectId(), $vars);
 
@@ -534,9 +534,9 @@ JS
 
     private function trigger__post() {
       if ($this->entry->getThread()->getObjectType()  == 'T')
-        return $this->getTicketsAPI()->addTask($this->getObjectId(), $vars);
+        return $this->getTicketsAPI()->addTask($this->getObjectId());
       else
-        return $this->getTasksAPI()->add($this->getObjectId(), $vars);
+        return $this->getTasksAPI()->add($this->getObjectId());
     }
 
 }