Fix undefined index in ThreadProcessor::processFunction

This commit is contained in:
Dmitriy Simushev 2014-11-21 15:49:03 +00:00
parent 428c592139
commit 03a8eab3d1

View File

@ -286,7 +286,7 @@ class ThreadProcessor extends ClientSideProcessor implements
// A function is called by a user. We need to check that the thread // A function is called by a user. We need to check that the thread
// is related with the user. // is related with the user.
$arguments = $context->getArgumentsList($function); $arguments = $context->getArgumentsList($function);
$thread_id = $arguments['threadid']; $thread_id = $arguments['threadId'];
// As defined in Mibew\API\Interaction\ChatInteraction "threadid" // As defined in Mibew\API\Interaction\ChatInteraction "threadid"
// argument is mandatory, but some function allows it to be null. In // argument is mandatory, but some function allows it to be null. In
// such cases there is no thread and there is nothing to check. // such cases there is no thread and there is nothing to check.