diff options
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index ea7719d4b..17822d0d5 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1672,8 +1672,17 @@ function get_responses($conv_responses,$response_verbs,$ob,$item) { $ret[$v]['button'] = get_response_button_text($v,$ret[$v]['count']); $ret[$v]['title'] = $conv_responses[$v]['title']; } - $ret['count'] = count($ret); + + $count = 0; + foreach($ret as $key) { + if ($key['count'] == true) + $count++; + } + + $ret['count'] = $count; + //logger('ret: ' . print_r($ret,true)); + return $ret; } |