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
// is related with the user.
$arguments = $context->getArgumentsList($function);
$thread_id = $arguments['threadid'];
$thread_id = $arguments['threadId'];
// As defined in Mibew\API\Interaction\ChatInteraction "threadid"
// argument is mandatory, but some function allows it to be null. In
// such cases there is no thread and there is nothing to check.