aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 0af603ca9..3db8d7204 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1666,8 +1666,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;
}