diff --git a/src/messenger/pack.pl b/src/messenger/pack.pl index 876c3957..a6b0704d 100755 --- a/src/messenger/pack.pl +++ b/src/messenger/pack.pl @@ -5,7 +5,7 @@ ################################################################## $targetFolder = "deploy"; -$suffix = "160"; +$suffix = "161"; ################################################################## # Copies tree into target folder, preprocess .phps diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php index ac0bbfcc..0cbb2a05 100644 --- a/src/messenger/webim/libs/operator.php +++ b/src/messenger/webim/libs/operator.php @@ -105,13 +105,13 @@ function has_online_operators($groupid="") { global $settings; loadsettings(); $link = connect(); - $query = "select min(unix_timestamp(CURRENT_TIMESTAMP)-unix_timestamp(dtmlastvisited)) as time from chatoperator"; + $query = "select count(*) as total, min(unix_timestamp(CURRENT_TIMESTAMP)-unix_timestamp(dtmlastvisited)) as time from chatoperator"; if($groupid) { $query .= ", chatgroupoperator where groupid = $groupid and chatoperator.operatorid = chatgroupoperator.operatorid"; } $row = select_one_row($query,$link); mysql_close($link); - return $row['time'] < $settings['online_timeout']; + return $row['time'] < $settings['online_timeout'] && $row['total'] > 0; } function get_operator_name($operator) { diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 44eef03f..f798c4f9 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -258,6 +258,7 @@ page.preview.agentrochat=View Chat window (operator in readonly mode) page.preview.chatsimple=Simple chat window, refresh to post messages (IE 5, Opera 7) page.preview.choose=Choose style page.preview.choosetpl=Choose template +page.preview.error=Error window page.preview.intro=From here, you can view the list of themes you currently have installed. page.preview.leavemessage=Leave message window page.preview.leavemessagesent="Message is delivered" window diff --git a/src/messenger/webim/styles/default/templates/chat.tpl b/src/messenger/webim/styles/default/templates/chat.tpl index 0733fed7..27ed1e1c 100644 --- a/src/messenger/webim/styles/default/templates/chat.tpl +++ b/src/messenger/webim/styles/default/templates/chat.tpl @@ -2,17 +2,16 @@
-
- |
+ |
|
| |
-
|