aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-02-16 14:35:01 +0100
committerMario Vavti <mario@mariovavti.com>2021-02-16 14:35:01 +0100
commit281b2261aff9919e208562466e7969ccae26d9a0 (patch)
tree6c3bcdb98529a5108b1be13b7cf7f8f7f38c957d /include/conversation.php
parent3eaf0b7f23aded75894848664420658e429dce5a (diff)
downloadvolse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.tar.gz
volse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.tar.bz2
volse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.zip
reduce loglevel until the most glaring php8 issues will be resolved
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 1b0db52e3..b22093951 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1725,13 +1725,11 @@ function get_responses($conv_responses,$response_verbs,$ob,$item) {
$ret = array();
foreach($response_verbs as $v) {
$ret[$v] = array();
- $ret[$v]['count'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid']] : '');
+ $ret[$v]['count'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid']] : 0);
$ret[$v]['list'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid'] . '-l'] : '');
$ret[$v]['button'] = get_response_button_text($v,$ret[$v]['count']);
$ret[$v]['title'] = $conv_responses[$v]['title'];
- if($ret[$v]['count'] > MAX_LIKERS) {
- $ret[$v]['modal'] = true;
- }
+ $ret[$v]['modal'] = (($ret[$v]['count'] > MAX_LIKERS) ? true : false);
}
$count = 0;