diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index 776ccd40..3117b7e7 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -304,7 +304,7 @@ function setup_chatview_for_operator($thread,$operator) { foreach(explode("\n", getlocal_('chat.predefined_answers', $thread['locale'])) as $answer) { $predefinedres .= ""; } - $page['predefinedAnswers'] = $predefinedres; + $page['predefinedAnswers'] = $predefinedres; $params = "thread=".$thread['threadid']."&token=".$thread['ltoken']; $page['selfLink'] = "$webimroot/operator/agent.php?".$params; diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php index e7f7e298..18fe84af 100644 --- a/src/messenger/webim/libs/expand.php +++ b/src/messenger/webim/libs/expand.php @@ -28,7 +28,7 @@ function expand_condition($matches) { if($value) { return preg_replace_callback($ifregexp, "expand_condition", $matches[3]); } else if(isset($matches[4])) { - return preg_replace_callback($ifregexp, "expand_condition", substr($matches[4],strpos($matches[4],"}")+1)); + return preg_replace_callback($ifregexp, "expand_condition", substr($matches[4],strpos($matches[4],"}")+1)); } return ""; } @@ -50,7 +50,7 @@ function expand_var($matches) { } $result .= getlocal("errors.footer"); return $result; - } + } } } else if($prefix == 'msg:') { diff --git a/src/messenger/webim/operator/agent.php b/src/messenger/webim/operator/agent.php index a63a55ce..c9bc5178 100644 --- a/src/messenger/webim/operator/agent.php +++ b/src/messenger/webim/operator/agent.php @@ -69,7 +69,7 @@ $pparam = verifyparam( "act", "/^(redirect)$/", "default"); if( $pparam == "redirect" ) { $found = get_operators(); setup_pagination($found); - + $agent_list = ""; $params = array('thread' => $threadid, 'token' => $token); for( $indagent = 0; $indagent < count($page['pagination.items']); $indagent += 1 ) { @@ -78,7 +78,7 @@ if( $pparam == "redirect" ) { $agent_list .= "