From e708282a8fc6878e5b2ed1171e0eb2802cdbb6ae Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 16 Aug 2012 13:29:51 +0000 Subject: [PATCH] Added default value to $existance argument in the MibewAPI::getResultFunction method --- src/messenger/webim/libs/mibew_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messenger/webim/libs/mibew_api.php b/src/messenger/webim/libs/mibew_api.php index 53d762e6..b6acc47e 100644 --- a/src/messenger/webim/libs/mibew_api.php +++ b/src/messenger/webim/libs/mibew_api.php @@ -270,7 +270,7 @@ Class MibewAPI { * * @param string $token Token of the result package * @param array $result_arguments Arguments of result function - * @return Result package + * @return array Result package */ public function buildResult($token, $result_arguments) { $arguments = $result_arguments + $this->interaction->getDefaultObligatoryArguments(); @@ -298,7 +298,7 @@ Class MibewAPI { * @return mixed Function array if 'result' function found and NULL otherwise * @throws MibewAPIException */ - public function getResultFunction ($functions_list, $existence) { + public function getResultFunction ($functions_list, $existence = null) { $result_function = null; // Try to find 'result' function foreach ($functions_list as $function) {